1. Get time difference without time() (solved) [INFO]
- Posted by aku at inbox.as Mar 24, 2001
- 404 views
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.
2. Re: Get time difference without time() (solved) [INFO]
- Posted by Mike The Spike <mtsreborn at yahoo.com> Mar 24, 2001
- 409 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. > > > > >
3. Re: Get time difference without time() (solved) [INFO]
- Posted by Igor Kachan <kinz at peterlink.ru> Mar 24, 2001
- 371 views
Dear Mike: > I use that routine all the time in Eu Vs C > benchmarks... > It returns the incremented CPU tick count every > millisecond. Be very careful with these benchmarks. Multitasking distorts the results, same about the exact delays. Eu CE has no time profile under Win32 and Linux just because of this reason. Regards, Igor Kachan kinz at peterlink.ru