[hatari-devel] Main_GetTicks really useful ?
Nicolas Pomarède
npomarede at corp.free.fr
Sun Jan 30 23:13:37 CET 2011
Le 30/01/2011 22:21, Eero Tamminen a écrit :
> The point of it is not to get accurate wallclock, but to get process time
> (which Linux times() provides to user-space at 100Hz tick which isn't
> accurate for very short intervals) as that's not affected by other processes
> and is therefore more accurate measure of how much CPU time is spent by that
> _particular_ process _over time_, not how the clock advance in the whole
> system.
My bad, I read this too fast :) I didn't see it was to measure process'
time, not overall elapsed time (the name Main_GetTicks is a little
misleading, I thought it measured the same thing as SDL_GetTicks but in
a different way).
So, let's leave this as it is.
Nicolas
More information about the hatari-devel
mailing list