Mircro time error

Discussion about the ZBasic language including the System Library. If you're not sure where to post your message, do it here. However, do not make test posts here; that's the purpose of the Sandbox.
Post Reply
Paul Lamar
Posts: 65
Joined: 14 May 2010, 16:01 PM

Mircro time error

Post by Paul Lamar »

I typed this right out of the lib ref.

Got a compiler error and the Windows XP computer crashed ):

See the attached files.

Paul Lamar
Attachments
get-micro-time-error.jpg
(166.53 KiB) Downloaded 1765 times
get-micro-time-error2.jpg
(130.96 KiB) Downloaded 1749 times
dkinzer
Site Admin
Posts: 3120
Joined: 03 September 2005, 13:53 PM
Location: Portland, OR

Re: Mircro time error

Post by dkinzer »

Paul Lamar wrote:I typed this right out of the lib ref.
Well, not quite. Line 15 should read:

Code: Select all

delta = GetElapsedMicroTime(t0)
Even so, it shouldn't have caused an exception. When I compile it (running on WinXP) with the parameter being delta instead of t0 it doesn't cause an exception.
- Don Kinzer
Post Reply