Open michaellilltokiwa opened 7 months ago
It is a matter of accuracy vs. precision. System functions like nanosleep
typically have a very high precision but may have horrible accuracy (i.e. running out of sync with wall clock time by seconds or minutes per day), while sleep
or time
usually has poorer precision but high accuracy.
I had chosen nano
in the name to make clear that this is the high precision timer since this seems to be the standard term.
There are comments in time.nano that state that "no guarantee can be given for precision nor resolution". Maybe we then do want to give some guarantee for the default handler?
The name
nano
makes it seem like it gives nano-second precision or resolution. But this is not necessarily the case.