Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | List of all members
ThreadUserTimer Class Reference

Measure CPU time spent executing instructions of this thread (if supported by OS) More...

#include <hrtimer.h>

Inheritance diagram for ThreadUserTimer:
[legend]
Collaboration diagram for ThreadUserTimer:
[legend]

Public Member Functions

 ThreadUserTimer (Unit unit=TimerBase::SECONDS, bool stuckAtZero=false)
 
TimerWord GetCurrentTimerValue ()
 
TimerWord TicksPerSecond ()
 
- Public Member Functions inherited from TimerBase
 TimerBase (Unit unit, bool stuckAtZero)
 
void StartTimer ()
 
double ElapsedTimeAsDouble ()
 
unsigned long ElapsedTime ()
 

Additional Inherited Members

- Public Types inherited from TimerBase
enum  Unit { SECONDS = 0, MILLISECONDS, MICROSECONDS, NANOSECONDS }
 

Detailed Description

Measure CPU time spent executing instructions of this thread (if supported by OS)

Note
ThreadUserTimer only works correctly on Windows NT or later desktops and servers. On Unix-based it reports process time. On Windows Phone and Windows Store it reports wall clock time with performance counter precision. On all others it reports wall clock time.

Definition at line 48 of file hrtimer.h.

Constructor & Destructor Documentation

ThreadUserTimer::ThreadUserTimer ( Unit  unit = TimerBase::SECONDS,
bool  stuckAtZero = false 
)
inline

Definition at line 51 of file hrtimer.h.

Member Function Documentation

TimerWord ThreadUserTimer::GetCurrentTimerValue ( )
virtual

Implements TimerBase.

Definition at line 121 of file hrtimer.cpp.

Here is the call graph for this function:

TimerWord ThreadUserTimer::TicksPerSecond ( )
virtual

Implements TimerBase.

Definition at line 159 of file hrtimer.cpp.


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