03-21-2019, 06:26 AM
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?
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?