Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2002-11

bug report - bad time measuring

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Divacky Roman

hi

I want to measure time in miliseconds... so I use NOW function... it returns in its one item miliseconds past midnight... but those miliseconds are in fact only seconds multiplyed by 1000... so its not very accurate...

is there any way how to measure time in smaller units?? or would be possible to implement now to behave correctly? (libc wrapper?)

thanks a lot for answer!

roman divacky

Anton Tichawa
to Divacky Roman

hi, roman!

what os do you use?

under linux, there is linux.gettimeofday, which has a resolution of 10 ms on my system.

ciao,

anton.

Divacky Roman wrote 17 lines
hi I want to measure time in miliseconds... so I use NOW function... it returns in its one item miliseconds past midnight... but those miliseconds are in fact only seconds multiplyed by 1000... so its not very accurate... is there any way how to measure time in smaller units?? or would be possible to implement now to behave correctly? (libc wrapper?) thanks a lot for answer! roman divacky _______________________________________________ fpc-devel maillist - http://lists.freepascal.org/mailman/listinfo/fpc-devel