A simple wrapper of `gettimeofday(2)` for mruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
test
README.md
mrbgem.rake

README.md

mruby-gettimeofday

A simple wrapper of gettimeofday(2) for mruby

p gettimeofday
#=> {:tv_sec=>1500000000, :tv_usec=>500000}

This mgem works with MRB_WITHOUT_FLOAT.

Installation

in build_config.rb

MRuby::Build.new do |conf|
  conf.gem :github => "mame/mruby-gettimeofday"
end

Supported Methods

Kernel

  • Kernel#gettimeofday