Public Member Functions | Static Public Member Functions

graphlab::timer Class Reference
[GraphLab Utility Classes and Functions]

#include <timer.hpp>

List of all members.

Public Member Functions

void start ()
 Starts the timer.
double current_time () const
double current_time_millis () const

Static Public Member Functions

static double sec_of_day ()
static size_t usec_of_day ()

Detailed Description

A simple class that can be used for benchmarking/timing up to microsecond resolution.

Definition at line 32 of file timer.hpp.


Member Function Documentation

double graphlab::timer::current_time (  )  const [inline]

Returns the number of seconds since start() was called Behavior is undefined if start() was not called before calling current_time()

Definition at line 46 of file timer.hpp.

double graphlab::timer::current_time_millis (  )  const [inline]

Like current_time but returns in milliseconds

Definition at line 60 of file timer.hpp.

static double graphlab::timer::sec_of_day (  )  [inline, static]

Get the number of seconds (as a floating point value) since the Unix Epoch.

Definition at line 68 of file timer.hpp.

static size_t graphlab::timer::usec_of_day (  )  [inline, static]

Returns only the micro-second component of the time since the Unix Epoch.

Definition at line 82 of file timer.hpp.


The documentation for this class was generated from the following file: