32 inline double Foam::cpuTimeCxx::diff(
const value_type& a,
const value_type&
b)
34 return std::difftime(a.value,
b.
value) / CLOCKS_PER_SEC;
40 Foam::cpuTimeCxx::value_type::value_type()
77 return diff(last_, start_);
83 const value_type prev(last_);
85 return diff(last_, prev);
scalar diff(const triad &A, const triad &B)
Return a quantity of the difference between two triads.
const Type & value() const noexcept
Return const reference to value.
void resetCpuTimeIncrement() const
Reset to use the current time for the increment point.
double cpuTimeIncrement() const
Return CPU time [seconds] since last call to cpuTimeIncrement(), resetCpuTimeIncrement().
cpuTimeCxx()
Construct with the current clock time.
double elapsedCpuTime() const
Return CPU time (in seconds) from the start.
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
void resetCpuTime()
Reset to use the current time for the start and increment points.