You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return Process.clock_gettime(Process::CLOCK_MONOTONIC_RAW)
No intialization etc per system. It works as per the below definition.
I think there is a BSD CLOCK_MONOTONIC_PRECISE but this is from linux.
man clock_gettime
CLOCK_MONOTONIC_RAW (since Linux 2.6.28; Linux-specific)
Similar to CLOCK_MONOTONIC, but provides access to a raw hard‐
ware-based time that is not subject to NTP adjustments or the
incremental adjustments performed by adjtime(3).
The timestamp generation at https://github.com/aphyr/meangirls/blob/master/lib/meangirls.rb#L59 fails to be monotonic if the server is running NTP and performs a clock adjustment. Is there a better clock here?
The text was updated successfully, but these errors were encountered: