JohnPristine
JohnPristine

Reputation: 3575

Differences among clocks in Linux (CLOCK_MONOTONIC, CLOCK_REALTIME, CLOCK_SGI_CYCLE, etc)

Where can I find documentation about that? Which one has more precision? Which one has more performance? What is the difference among them?

Upvotes: 0

Views: 3346

Answers (1)

embedded.kyle
embedded.kyle

Reputation: 11466

Here is a nice test program to investigate the differences in the various system clocks:

http://lwn.net/Articles/105582/

The resolution is the same on all of them, but they each measure different things.

Upvotes: 2

Related Questions