Zero  0.1.0
Public Member Functions | Private Attributes | List of all members
stopwatch_t Class Reference

a timer object. More...

#include <stopwatch.h>

Public Member Functions

 stopwatch_t ()
 
long long time_us ()
 
double time_ms ()
 
double time ()
 
long long now ()
 
void reset ()
 
 stopwatch_t ()
 
long long time_us ()
 
double time_ms ()
 
double time ()
 
long long now ()
 
void reset ()
 

Private Attributes

struct timeval tv
 
long long mark
 

Detailed Description

a timer object.

Constructor & Destructor Documentation

§ stopwatch_t() [1/2]

stopwatch_t::stopwatch_t ( )
inline

§ stopwatch_t() [2/2]

stopwatch_t::stopwatch_t ( )
inline

Member Function Documentation

§ now() [1/2]

long long stopwatch_t::now ( )
inline

§ now() [2/2]

long long stopwatch_t::now ( )
inline

§ reset() [1/2]

void stopwatch_t::reset ( )
inline

§ reset() [2/2]

void stopwatch_t::reset ( )
inline

§ time() [1/2]

double stopwatch_t::time ( )
inline

§ time() [2/2]

double stopwatch_t::time ( )
inline

§ time_ms() [1/2]

double stopwatch_t::time_ms ( )
inline

§ time_ms() [2/2]

double stopwatch_t::time_ms ( )
inline

§ time_us() [1/2]

long long stopwatch_t::time_us ( )
inline

§ time_us() [2/2]

long long stopwatch_t::time_us ( )
inline

Member Data Documentation

§ mark

long long stopwatch_t::mark
private

§ tv

struct timeval stopwatch_t::tv
private

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