39 #ifndef Foam_clockValue_H 40 #define Foam_clockValue_H 61 typedef std::chrono::high_resolution_clock::duration
value_type;
114 std::string
str()
const;
120 inline operator double()
const;
139 inline clockValue
operator+(
const clockValue& a,
const clockValue&
b)
141 return clockValue(a.value() +
b.
value());
std::string str() const
Format as day-hh:mm:ss string.
const Type & value() const noexcept
Return const reference to value.
clockValue elapsed() const
The time duration elapsed until now() since the start point.
long seconds() const
The value in seconds (rounded)
double elapsedTime() const
The time elapsed [seconds] until now() since the start point.
tmp< faMatrix< Type > > operator+(const faMatrix< Type > &, const faMatrix< Type > &)
void update()
Update to the current now() time from the system.
clockValue & operator-=(const clockValue &rhs)
Subtract clock value.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
static clockValue now()
The current clock value from the system.
void clear()
Reset to zero.
std::chrono::high_resolution_clock::duration value_type
Time structure used.
Access to high-resolution clock value with some basic operations. Used to calculate time durations...
tmp< faMatrix< Type > > operator-(const faMatrix< Type > &)
Unary negation.
const value_type & value() const noexcept
The time duration.
clockValue & operator+=(const clockValue &rhs)
Add clock value.
clockValue()
Construct zero initialized.