Re: Get time difference without time() (solved) [INFO]

new topic     » goto parent     » topic index » view thread      » older message » newer message

I use that routine all the time in Eu Vs C
benchmarks...
It returns the incremented CPU tick count every
millisecond.

Mike The Spike
PS. But beware, it resets to 0 after 40 days... !

--- aku at inbox.as wrote:
> 
>
> 
> for info only:
> 
> I now get the replacement for time():
> 
> global function timer()
>     if platform() = 2 then
>         return
> (c_func(define_c_func(open_dll("kernel32.dll"),
> "GetTickCount", {}, C_LONG), {})/1000)
>     else
>         return time()
>     end if
> end function
> 
> I got it from a VB mailing list.
> 
> It has 0.001 second accuracy, you can use it if you
> want.
> 
> 
> 
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu