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

high resolution timer More...

#include <hrtimer.h>

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

Public Member Functions

 Timer (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

high resolution timer

Definition at line 57 of file hrtimer.h.

Constructor & Destructor Documentation

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

Definition at line 60 of file hrtimer.h.

Member Function Documentation

TimerWord Timer::GetCurrentTimerValue ( )
virtual

Implements TimerBase.

Definition at line 90 of file hrtimer.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

TimerWord Timer::TicksPerSecond ( )
virtual

Implements TimerBase.

Definition at line 108 of file hrtimer.cpp.


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