31 void Foam::clockTime::getTime(timeType& t)
37 double Foam::clockTime::timeDifference(
const timeType& beg,
const timeType& end)
39 return end.tv_sec - beg.tv_sec + 1
e-6*(end.tv_usec - beg.tv_usec);
48 lastTime_ = startTime_;
49 newTime_ = startTime_;
58 return timeDifference(startTime_, newTime_);
66 return timeDifference(lastTime_, newTime_);
double elapsedTime() const
Return time (in seconds) from the start.
clockTime()
Construct with the current clock time.
double timeIncrement() const
Return time (in seconds) since last call to timeIncrement()
const doubleScalar e
Elementary charge.