vSMC
vSMC: Scalable Monte Carlo
Public Member Functions | List of all members
vsmc::StopWatchSYS Class Reference

Stop watch using system native API. More...

#include <vsmc/utility/stop_watch.hpp>

Public Member Functions

 StopWatchSYS ()
 
double hours () const
 
double microseconds () const
 
double milliseconds () const
 
double minutes () const
 
double nanoseconds () const
 
void reset ()
 
bool running ()
 
double seconds () const
 
bool start ()
 
bool stop ()
 

Detailed Description

Stop watch using system native API.

This class use mach_absolute_time on Mac OS X, clock_gettime on other POSIX systems, and QueryPerformanceCounter on Windows.

Definition at line 238 of file stop_watch.hpp.

Constructor & Destructor Documentation

vsmc::StopWatchSYS::StopWatchSYS ( )
inline

Definition at line 242 of file stop_watch.hpp.

Member Function Documentation

double vsmc::StopWatchSYS::hours ( ) const
inline

Definition at line 299 of file stop_watch.hpp.

double vsmc::StopWatchSYS::microseconds ( ) const
inline

Definition at line 287 of file stop_watch.hpp.

double vsmc::StopWatchSYS::milliseconds ( ) const
inline

Definition at line 290 of file stop_watch.hpp.

double vsmc::StopWatchSYS::minutes ( ) const
inline

Definition at line 296 of file stop_watch.hpp.

double vsmc::StopWatchSYS::nanoseconds ( ) const
inline

Definition at line 284 of file stop_watch.hpp.

void vsmc::StopWatchSYS::reset ( )
inline

Definition at line 275 of file stop_watch.hpp.

bool vsmc::StopWatchSYS::running ( )
inline

Definition at line 244 of file stop_watch.hpp.

double vsmc::StopWatchSYS::seconds ( ) const
inline

Definition at line 293 of file stop_watch.hpp.

bool vsmc::StopWatchSYS::start ( )
inline

Definition at line 246 of file stop_watch.hpp.

bool vsmc::StopWatchSYS::stop ( )
inline

Definition at line 257 of file stop_watch.hpp.