Re: Get time difference without time() (solved) [INFO]
- Posted by Mike The Spike <mtsreborn at yahoo.com> Mar 24, 2001
- 408 views
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. > > > > >