Skip to content

Instantly share code, notes, and snippets.

@schwern
Last active March 5, 2016 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schwern/32b809c1eec1487d5506 to your computer and use it in GitHub Desktop.
Save schwern/32b809c1eec1487d5506 to your computer and use it in GitHub Desktop.
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