4 #ifndef DUNE_PDELAB_COMMON_CLOCK_HH
5 #define DUNE_PDELAB_COMMON_CLOCK_HH
11 #include <dune/common/exceptions.hh>
58 std::ostream &
operator<<(std::ostream &
s,
const TimeSpec &t);
const std::string s
Definition: function.hh:843
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
const std::string & getWallTimeImp()
return a string describing which implementation is used to get the wall time
Definition: clock.cc:128
TimeSpec getProcessTime()
get the process time in seconds used by the current process
Definition: clock.cc:213
const std::string & getProcessTimeImp()
return a string describing which implementation is used to get the process time
Definition: clock.cc:216
std::ostream & operator<<(std::ostream &s, const TimeSpec &t)
insert a timespec into an output stream
Definition: clock.cc:39
TimeSpec getWallTime()
get the wall time in seconds since the epoch
Definition: clock.cc:125
TimeSpec getProcessTimeResolution()
get resolution of the process time in seconds
Definition: clock.cc:214
TimeSpec getWallTimeResolution()
get resolution of the wall time in seconds
Definition: clock.cc:126
struct to store temporal values
Definition: clock.hh:17
time_t tv_sec
seconds part
Definition: clock.hh:19
TimeSpec operator-(const TimeSpec &o) const
Definition: clock.hh:49
TimeSpec & operator-=(const TimeSpec &o)
Definition: clock.hh:40
TimeSpec & operator+=(const TimeSpec &o)
Definition: clock.hh:26
long tv_nsec
nanoseconds part
Definition: clock.hh:24
TimeSpec operator+(const TimeSpec &o) const
Definition: clock.hh:35
exception thrown by clock functions
Definition: clock.hh:61
Base class for all PDELab exceptions.
Definition: exceptions.hh:19