Asmod4n / mruby-chrono

System and steady clocks for mruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mruby-chrono

Adds System and Steady clocks to mruby akin to std::chrono from c++11

Examples

Chrono::Steady.now or Chrono.steady # returns a monotonic increasing timestamp, usefull for Benchmarking
Chrono::System.now or Chrono.system # returns the current System Time

The return values are Ruby Floats. This suports HP-UX, Solaris, macOS, BSD, Linux, AIX, POSIX and Windows.

About

System and steady clocks for mruby

License:Apache License 2.0


Languages

Language:C 79.6%Language:Ruby 20.4%