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;
139inline clockValue
operator+(
const clockValue& a,
const clockValue&
b)
141 return clockValue(a.value() +
b.value());
Access to high-resolution clock value with some basic operations. Used to calculate time durations,...
long seconds() const
The value in seconds (rounded).
const value_type & value() const noexcept
The time duration.
std::chrono::high_resolution_clock::duration value_type
Time structure used.
clockValue()
Construct zero initialized.
clockValue & operator+=(const clockValue &rhs)
Add clock value.
static clockValue now()
The current clock value from the system.
clockValue & operator-=(const clockValue &rhs)
Subtract clock value.
void update()
Update to the current now() time from the system.
clockValue elapsed() const
The time duration elapsed until now() since the start point.
void clear()
Reset to zero.
std::string str() const
Format as day-hh:mm:ss string.
double elapsedTime() const
The time elapsed [seconds] until now() since the start point.
tmp< faMatrix< Type > > operator-(const faMatrix< Type > &)
Unary negation.
tmp< faMatrix< Type > > operator+(const faMatrix< Type > &, const faMatrix< Type > &)
void rhs(fvMatrix< typename Expr::value_type > &m, const Expr &expression)