|
| void | addSample (std::chrono::time_point< std::chrono::high_resolution_clock > start, std::chrono::time_point< std::chrono::high_resolution_clock > stop) |
| |
| void | start (std::chrono::time_point< std::chrono::high_resolution_clock > time) |
| |
| void | stop (std::chrono::time_point< std::chrono::high_resolution_clock > time) |
| |
|
| std::chrono::high_resolution_clock::duration | current_ |
| |
| std::chrono::time_point< std::chrono::high_resolution_clock > | start_ = {} |
| |
Definition at line 51 of file timer.hpp.
◆ addSample()
| void ufo::Timer::addSample |
( |
std::chrono::time_point< std::chrono::high_resolution_clock > |
start, |
|
|
std::chrono::time_point< std::chrono::high_resolution_clock > |
stop |
|
) |
| |
|
protected |
◆ current()
template<class Period = std::chrono::seconds::period>
| double ufo::Timer::current |
( |
| ) |
const |
|
inline |
◆ currentMicroseconds()
| double ufo::Timer::currentMicroseconds |
( |
| ) |
const |
◆ currentMilliseconds()
| double ufo::Timer::currentMilliseconds |
( |
| ) |
const |
◆ currentNanoseconds()
| double ufo::Timer::currentNanoseconds |
( |
| ) |
const |
◆ currentSeconds()
| double ufo::Timer::currentSeconds |
( |
| ) |
const |
◆ last()
template<class Period = std::chrono::seconds::period>
| double ufo::Timer::last |
( |
| ) |
const |
|
inline |
◆ lastMicroseconds()
| double ufo::Timer::lastMicroseconds |
( |
| ) |
const |
◆ lastMilliseconds()
| double ufo::Timer::lastMilliseconds |
( |
| ) |
const |
◆ lastNanoseconds()
| double ufo::Timer::lastNanoseconds |
( |
| ) |
const |
◆ lastSeconds()
| double ufo::Timer::lastSeconds |
( |
| ) |
const |
◆ max()
template<class Period = std::chrono::seconds::period>
| double ufo::Timer::max |
( |
| ) |
const |
|
inline |
◆ maxMicroseconds()
| double ufo::Timer::maxMicroseconds |
( |
| ) |
const |
◆ maxMilliseconds()
| double ufo::Timer::maxMilliseconds |
( |
| ) |
const |
◆ maxNanoseconds()
| double ufo::Timer::maxNanoseconds |
( |
| ) |
const |
◆ maxSeconds()
| double ufo::Timer::maxSeconds |
( |
| ) |
const |
◆ mean()
template<class Period = std::chrono::seconds::period>
| double ufo::Timer::mean |
( |
| ) |
const |
|
inline |
◆ meanMicroseconds()
| double ufo::Timer::meanMicroseconds |
( |
| ) |
const |
◆ meanMilliseconds()
| double ufo::Timer::meanMilliseconds |
( |
| ) |
const |
◆ meanNanoseconds()
| double ufo::Timer::meanNanoseconds |
( |
| ) |
const |
◆ meanSeconds()
| double ufo::Timer::meanSeconds |
( |
| ) |
const |
◆ min()
template<class Period = std::chrono::seconds::period>
| double ufo::Timer::min |
( |
| ) |
const |
|
inline |
◆ minMicroseconds()
| double ufo::Timer::minMicroseconds |
( |
| ) |
const |
◆ minMilliseconds()
| double ufo::Timer::minMilliseconds |
( |
| ) |
const |
◆ minNanoseconds()
| double ufo::Timer::minNanoseconds |
( |
| ) |
const |
◆ minSeconds()
| double ufo::Timer::minSeconds |
( |
| ) |
const |
◆ numSamples()
| int ufo::Timer::numSamples |
( |
| ) |
const |
◆ operator+=()
- Note
- This will stop
rhs (if it is running or paused) to add another sample.
- Parameters
-
- Returns
- Timer&
Definition at line 43 of file timer.cpp.
◆ operator-=()
- Note
- This will stop the
rhs timer (if it is running or paused) to add another sample.
- Parameters
-
- Returns
- Timer&
Definition at line 83 of file timer.cpp.
◆ pause()
| void ufo::Timer::pause |
( |
| ) |
|
◆ paused()
| bool ufo::Timer::paused |
( |
| ) |
const |
◆ populationVariance()
template<class Period = std::chrono::seconds::period>
| double ufo::Timer::populationVariance |
( |
| ) |
const |
|
inline |
◆ populationVarianceMicroseconds()
| double ufo::Timer::populationVarianceMicroseconds |
( |
| ) |
const |
◆ populationVarianceMilliseconds()
| double ufo::Timer::populationVarianceMilliseconds |
( |
| ) |
const |
◆ populationVarianceNanoseconds()
| double ufo::Timer::populationVarianceNanoseconds |
( |
| ) |
const |
◆ populationVarianceSeconds()
| double ufo::Timer::populationVarianceSeconds |
( |
| ) |
const |
◆ reset()
| void ufo::Timer::reset |
( |
| ) |
|
◆ resetCurrent()
| void ufo::Timer::resetCurrent |
( |
| ) |
|
◆ resume()
| void ufo::Timer::resume |
( |
| ) |
|
◆ running()
| bool ufo::Timer::running |
( |
| ) |
const |
◆ sampleVariance()
template<class Period = std::chrono::seconds::period>
| double ufo::Timer::sampleVariance |
( |
| ) |
const |
|
inline |
◆ sampleVarianceMicroseconds()
| double ufo::Timer::sampleVarianceMicroseconds |
( |
| ) |
const |
◆ sampleVarianceMilliseconds()
| double ufo::Timer::sampleVarianceMilliseconds |
( |
| ) |
const |
◆ sampleVarianceNanoseconds()
| double ufo::Timer::sampleVarianceNanoseconds |
( |
| ) |
const |
◆ sampleVarianceSeconds()
| double ufo::Timer::sampleVarianceSeconds |
( |
| ) |
const |
◆ start() [1/2]
| void ufo::Timer::start |
( |
| ) |
|
◆ start() [2/2]
| void ufo::Timer::start |
( |
std::chrono::time_point< std::chrono::high_resolution_clock > |
time | ) |
|
|
protected |
◆ std()
template<class Period = std::chrono::seconds::period>
| double ufo::Timer::std |
( |
| ) |
const |
|
inline |
◆ stdMicroseconds()
| double ufo::Timer::stdMicroseconds |
( |
| ) |
const |
◆ stdMilliseconds()
| double ufo::Timer::stdMilliseconds |
( |
| ) |
const |
◆ stdNanoseconds()
| double ufo::Timer::stdNanoseconds |
( |
| ) |
const |
◆ stdSeconds()
| double ufo::Timer::stdSeconds |
( |
| ) |
const |
◆ stop() [1/2]
| void ufo::Timer::stop |
( |
| ) |
|
◆ stop() [2/2]
| void ufo::Timer::stop |
( |
std::chrono::time_point< std::chrono::high_resolution_clock > |
time | ) |
|
|
protected |
◆ total()
template<class Period = std::chrono::seconds::period>
| double ufo::Timer::total |
( |
| ) |
const |
|
inline |
◆ totalMicroseconds()
| double ufo::Timer::totalMicroseconds |
( |
| ) |
const |
◆ totalMilliseconds()
| double ufo::Timer::totalMilliseconds |
( |
| ) |
const |
◆ totalNanoseconds()
| double ufo::Timer::totalNanoseconds |
( |
| ) |
const |
◆ totalSeconds()
| double ufo::Timer::totalSeconds |
( |
| ) |
const |
◆ variance()
template<class Period = std::chrono::seconds::period>
| double ufo::Timer::variance |
( |
| ) |
const |
|
inline |
◆ varianceMicroseconds()
| double ufo::Timer::varianceMicroseconds |
( |
| ) |
const |
◆ varianceMilliseconds()
| double ufo::Timer::varianceMilliseconds |
( |
| ) |
const |
◆ varianceNanoseconds()
| double ufo::Timer::varianceNanoseconds |
( |
| ) |
const |
◆ varianceSeconds()
| double ufo::Timer::varianceSeconds |
( |
| ) |
const |
◆ operator+
- Note
- This will stop both
lhs and rhs (if running or paused) to add another sample.
- Parameters
-
- Returns
- Timer&
Definition at line 69 of file timer.cpp.
◆ operator-
- Note
- This will stop both
lhs and rhs (if running or paused) to add another sample.
- Parameters
-
- Returns
- Timer&
Definition at line 100 of file timer.cpp.
◆ Timing
◆ current_
| std::chrono::high_resolution_clock::duration ufo::Timer::current_ |
|
protected |
Initial value:=
std::chrono::high_resolution_clock::duration::zero()
Definition at line 285 of file timer.hpp.
◆ start_
| std::chrono::time_point<std::chrono::high_resolution_clock> ufo::Timer::start_ = {} |
|
protected |
The documentation for this class was generated from the following files: