ccl icon indicating copy to clipboard operation
ccl copied to clipboard

get-internal-real-time should return monotonic time

Open eugeneia opened this issue 7 years ago • 6 comments

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.

eugeneia avatar Mar 03 '17 17:03 eugeneia