ML Reference
mlTimeCounter.h
Go to the documentation of this file.
1/*************************************************************************************
2**
3** Copyright 2007, MeVis Medical Solutions AG
4**
5** The user may use this file in accordance with the license agreement provided with
6** the Software or, alternatively, in accordance with the terms contained in a
7** written agreement between the user and MeVis Medical Solutions AG.
8**
9** For further information use the contact form at https://www.mevislab.de/contact
10**
11**************************************************************************************/
12
13#ifndef ML_TIME_COUNTER_H
14#define ML_TIME_COUNTER_H
15
17
18#include "mlUtilsSystem.h"
19
20ML_UTILS_START_NAMESPACE
21
22//--------------------------------------------------------------------------------------
24//--------------------------------------------------------------------------------------
78
79ML_UTILS_END_NAMESPACE
80
81#endif // __mlTimeCounter_H
82
83
84
85
Class to measure precise time intervals.
ML_UTILS_EXPORT void reset()
Reinitializes TimeCounter with the current time count as the start time.
ML_UTILS_EXPORT TimeCounter()
Constructs a time counter object and saves the current time count as a start value.
ML_UTILS_EXPORT MLdouble getCurrentValueInSeconds() const
Returns the current state of the time counter in seconds since an unknown start time base.
ML_UTILS_EXPORT MLdouble getStartValueInSeconds() const
Returns the start value of the time counter in seconds since an unknown start time base.
MLint64 _start
Counter value in counts on construction/reset time of first TimeCounter object.
ML_UTILS_EXPORT TimeCounter & operator=(const TimeCounter &originalCount)
Assigns the value from the TimeCounter originalCount to *this.
static ML_UTILS_EXPORT MLdouble getCountResolutionInSeconds()
Returns the time interval between two timer counts in seconds.
ML_UTILS_EXPORT MLint64 getRunningTimeInCounts() const
Returns the difference between current and start time in counts.
ML_UTILS_EXPORT MLint64 getStartValueInCounts() const
Returns the start (=reset, =construction) time of the counter in counts.
static ML_UTILS_EXPORT MLdouble getCountResolutionInNanoSeconds()
Returns the time interval between two timer counts in nano-seconds.
ML_UTILS_EXPORT MLdouble getRunningTimeInSeconds() const
Returns time difference between current and start time in seconds.
ML_UTILS_EXPORT MLint64 getCurrentValueInCounts() const
Returns the current state of the time counter in counts.
ML_UTILS_EXPORT TimeCounter(const TimeCounter &originalCount)
Constructs a new time counter with the time count of originalCount.
ML_UTILS_EXPORT MLdouble getRunningTimeInNanoSeconds() const
Returns time difference between current and start time in seconds.
double MLdouble
Definition mlTypeDefs.h:217
INT64 MLint64
Include 64 bit integer support for Windows or Unix.
Definition mlTypeDefs.h:412
#define ML_UTILS_EXPORT
Defines platform dependent DLL export macro for mlUtils.
Definition mlUtilities.h:20