View Single Post
Old 11-04-2013, 08:52 AM   #19
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote: "gettimeofday() is **fast**"

You better believe it.
That statement has an interesting story all its own.

Far too long for a forum post but can probably be found somewhere in the development history of *nix or computer OSs in general.

For performance critical code paths, it is (still) common for those to be hand-coded and cycle counted - -
And then there is "gettimeofday()" -

This one is where both software implementors and cpu hardware implementors start doing crazy dances and hand-springs.
And they start considering hardware delay paths within a single clock cycle.
Where referencing an off-chip memory location or off-chip register location is: "too much overhead".

Yes, "gettimeofday() is **fast**"
knc1 is offline   Reply With Quote