Skip to content

Instantly share code, notes, and snippets.

@schwern
Last active March 5, 2016 19:17
Embed
What would you like to do?
t = Process.clock_gettime(Process::CLOCK_MONOTONIC);
puts "%10.10f" % t.prev_float; # 391942.2739719209
puts "%10.10f" % t; # 391942.2739719210
puts "%10.10f" % t.next_float; # 391942.2739719211
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment