ICL Time class (taken from the Ice lib)
More...
#include <Time.h>
ICL Time class (taken from the Ice lib)
◆ value_type
internal data type (64Bit integer)
◆ Time() [1/2]
icl::utils::Time::Time |
( |
| ) |
|
◆ Time() [2/2]
◆ age()
Time icl::utils::Time::age |
( |
| ) |
const |
|
inline |
◆ getAgeString()
std::string icl::utils::Time::getAgeString |
( |
| ) |
const |
|
inline |
returns string representation of the times age
◆ microSeconds()
◆ milliSeconds()
◆ now()
static Time icl::utils::Time::now |
( |
| ) |
|
|
static |
◆ operator *() [1/4]
Time icl::utils::Time::operator * |
( |
const Time & |
rhs | ) |
const |
|
inline |
◆ operator *() [2/4]
Time icl::utils::Time::operator * |
( |
int |
rhs | ) |
const |
|
inline |
◆ operator *() [3/4]
◆ operator *() [4/4]
Time icl::utils::Time::operator * |
( |
double |
rhs | ) |
const |
|
inline |
◆ operator *=() [1/4]
Time& icl::utils::Time::operator *= |
( |
const Time & |
rhs | ) |
|
|
inline |
◆ operator *=() [2/4]
Time& icl::utils::Time::operator *= |
( |
int |
rhs | ) |
|
|
inline |
◆ operator *=() [3/4]
◆ operator *=() [4/4]
Time& icl::utils::Time::operator *= |
( |
double |
rhs | ) |
|
|
inline |
◆ operator!=()
bool icl::utils::Time::operator!= |
( |
const Time & |
rhs | ) |
const |
|
inline |
◆ operator+()
Time icl::utils::Time::operator+ |
( |
const Time & |
rhs | ) |
const |
|
inline |
◆ operator+=()
Time& icl::utils::Time::operator+= |
( |
const Time & |
rhs | ) |
|
|
inline |
◆ operator-() [1/2]
Time icl::utils::Time::operator- |
( |
| ) |
const |
|
inline |
◆ operator-() [2/2]
Time icl::utils::Time::operator- |
( |
const Time & |
rhs | ) |
const |
|
inline |
◆ operator-=()
Time& icl::utils::Time::operator-= |
( |
const Time & |
rhs | ) |
|
|
inline |
◆ operator/() [1/4]
Time icl::utils::Time::operator/ |
( |
const Time & |
rhs | ) |
const |
|
inline |
◆ operator/() [2/4]
Time icl::utils::Time::operator/ |
( |
int |
rhs | ) |
const |
|
inline |
◆ operator/() [3/4]
◆ operator/() [4/4]
Time icl::utils::Time::operator/ |
( |
double |
rhs | ) |
const |
|
inline |
◆ operator/=() [1/4]
Time& icl::utils::Time::operator/= |
( |
const Time & |
rhs | ) |
|
|
inline |
◆ operator/=() [2/4]
Time& icl::utils::Time::operator/= |
( |
int |
rhs | ) |
|
|
inline |
◆ operator/=() [3/4]
◆ operator/=() [4/4]
Time& icl::utils::Time::operator/= |
( |
double |
rhs | ) |
|
|
inline |
◆ operator<()
bool icl::utils::Time::operator< |
( |
const Time & |
rhs | ) |
const |
|
inline |
◆ operator<=()
bool icl::utils::Time::operator<= |
( |
const Time & |
rhs | ) |
const |
|
inline |
◆ operator==()
bool icl::utils::Time::operator== |
( |
const Time & |
rhs | ) |
const |
|
inline |
◆ operator>()
bool icl::utils::Time::operator> |
( |
const Time & |
rhs | ) |
const |
|
inline |
◆ operator>=()
bool icl::utils::Time::operator>= |
( |
const Time & |
rhs | ) |
const |
|
inline |
◆ printAge()
void icl::utils::Time::printAge |
( |
const std::string & |
title = "" | ) |
const |
|
inline |
alternative function name for showAge
◆ seconds()
◆ showAge()
void icl::utils::Time::showAge |
( |
const std::string & |
title = "" | ) |
const |
|
inline |
common function for simple benchmarking
◆ toMicroSeconds()
value_type icl::utils::Time::toMicroSeconds |
( |
| ) |
const |
◆ toMicroSecondsDouble()
double icl::utils::Time::toMicroSecondsDouble |
( |
| ) |
const |
◆ toMilliSeconds()
value_type icl::utils::Time::toMilliSeconds |
( |
| ) |
const |
◆ toMilliSecondsDouble()
double icl::utils::Time::toMilliSecondsDouble |
( |
| ) |
const |
◆ toSeconds()
◆ toSecondsDouble()
double icl::utils::Time::toSecondsDouble |
( |
| ) |
const |
◆ toString()
std::string icl::utils::Time::toString |
( |
| ) |
const |
◆ toStringFormated()
std::string icl::utils::Time::toStringFormated |
( |
const std::string & |
pattern, |
|
|
unsigned int |
bufferSize = 32 , |
|
|
bool |
zeropadded = false |
|
) |
| const |
allows to create a formated string using strftime system-functions
Please refer to your system dependent strftime reference: please note, that strftime is does not support milli and micro-second accuracy, . So this feature is implemented here. Please use
- %* for the remaining usecs less then the last second
- %# for the remaining milliseconds less then the last second
- %- for the remaining usecs less then the last millisecond
For example, the default toString() functions uses this time patterns: "%x %H:%M:%S:%#"
◆ operator<<
writes Time instances value type into the stream
◆ operator>>
reads Time instances value type from the stream
◆ m_usec
◆ null
const Time icl::utils::Time::null |
|
static |
The documentation for this class was generated from the following file:
- /Users/alneuman/vm/icl/ICLUtils/src/ICLUtils/Time.h