The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 864 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.7 (Linux)
File Line Function
/showthread.php 864 errorHandler->error




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Time keeping
#1
Hi all

I want to get time since startup in a background C app in milliseconds.
what are the precision and drift of time functions in C like GetPmacRunTime() and GetCPUClock()?
in the manual these functions return time in seconds and microseconds respectively. However, I was testing with GetPmacRunTime(), I found that it's value has some numbers after the decimal point. Can I use this number to get time in milliseconds just by multiplying by a 1000 or do you suggest better solutions to get milliseconds?
Reply


Messages In This Thread
Time keeping - khalil-yazji - 03-21-2019, 06:26 AM
RE: Time keeping - curtwilson - 03-22-2019, 09:36 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)