BoosterSeat  0.1
A C++ library that includes common utilities that are used in other projects.
clock.hpp File Reference
#include <chrono>
Include dependency graph for clock.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 bst
 
 bst::clck
 
 bst::clck::units
 

Typedefs

typedef std::chrono::high_resolution_clock bst::clck::Clock
 
typedef Clock::duration bst::clck::Duration
 
typedef std::chrono::duration< double, std::ratio< 1, 1000000 > > bst::clck::units::Microseconds
 
typedef std::chrono::duration< double, std::ratio< 1, 1000 > > bst::clck::units::Milliseconds
 
typedef std::chrono::duration< double, std::ratio< 1, 1 > > bst::clck::units::Seconds
 
typedef std::chrono::time_point< Clock > bst::clck::TimePoint
 

Functions

TimePoint bst::clck::fromTimeT (time_t time)
 
int bst::clck::millisecondsElapsed (const TimePoint &time_point)
 
TimePoint bst::clck::now ()
 
int bst::clck::secondsElapsed (const TimePoint &time_point)
 
time_t bst::clck::toTimeT (const TimePoint &time_point)