module Hitimes

::Error

General error class for the Hitimes module

The top level module containing the contents of the hitimes library

use the library with:

require 'hitimes'

Constants

INSTANT_CONVERSION_FACTOR
VERSION

Public Class Methods

measure(&block) click to toggle source

::measure { } -> Float

Times the execution of the block, returning the number of seconds it took

# File lib/hitimes.rb, line 22
def self.measure(&block)
  Hitimes::Interval.measure(&block)
end
raw_instant → Integer click to toggle source

Return the raw instant value from the operating system

VALUE hitimes_instant_raw( )
{
    unsigned long long i = (unsigned long long)hitimes_get_current_instant( );

    return ULL2NUM(i);
}