ccl
ccl copied to clipboard
get-internal-real-time should return monotonic time
I think get-internal-real-time
should return a monotonic/non-decreasing value. Even though the function is not mentioned in the manual (also an issue), its docstring says
Return the real time in the internal time format. (See INTERNAL-TIME-UNITS-PER-SECOND.) This is useful for finding elapsed time.
which a non-monotonic clock is not. Proposed solution: have get-internal-real-time
derive its return value from clock_gettime(3)
instead of gettimeofday(2)
.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.