|
|
Subscribe / Log in / New account

The trouble with the TSC

The trouble with the TSC

Posted May 21, 2010 17:04 UTC (Fri) by blitzkrieg3 (guest, #57873)
In reply to: The trouble with the TSC by sustrik
Parent article: The trouble with the TSC

So you're cool with time going backwards?


to post comments

The trouble with the TSC

Posted May 21, 2010 17:13 UTC (Fri) by sustrik (guest, #62161) [Link]

Sure. No problem with that. It's only used as a heuristic to find out whether at least some time have elapsed since the previous time measurement. I don't need correct answer each time. Correct answer in say 90% of cases will do.

The trouble with the TSC

Posted May 21, 2010 21:11 UTC (Fri) by foom (subscriber, #14868) [Link]

Well, if you use gettimeofday(), you'd better be cool with time going backwards too, cause it happens rather often.

(hardware/kernel version with malfunctioning timekeeping, also running NTP; NTP will step the time once in a while because it can't keep up with the clock drift. You might say that's uncommon, but not so uncommon that you won't run into it!)


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds