|
OpenMS
2.6.0
|
Go to the documentation of this file.
37 #include <OpenMS/config.h>
42 #ifdef OPENMS_HAS_SYS_TIME_H
46 #ifdef OPENMS_HAS_TIME_H
121 double getClockTime()
const;
126 double getUserTime()
const;
131 double getSystemTime()
const;
137 double getCPUTime()
const;
146 bool isRunning()
const;
180 bool operator<=(
const StopWatch & stop_watch)
const;
188 bool operator>=(
const StopWatch & stop_watch)
const;
196 bool operator>(
const StopWatch & stop_watch)
const;
215 #ifdef OPENMS_WINDOWSPLATFORM
216 typedef OPENMS_UINT64_TYPE
TimeType;
217 static const long long SecondsTo100Nano_;
227 PointerSizeInt start_time{ 0 };
228 PointerSizeInt start_time_usec{ 0 };
230 double userTime()
const;
231 double kernelTime()
const;
232 double getCPUTime()
const;
233 double clockTime()
const;
240 double ticksToSeconds_(
TimeType in)
const;
245 TimeDiff_ snapShot_()
const;
255 bool is_running_ =
false;
TimeDiff_ last_start_
point in time of last start()
Definition: StopWatch.h:252
A more convenient string class.
Definition: String.h:59
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
bool operator<(const QTCluster &q1, const QTCluster &q2)
static const PointerSizeInt cpu_speed_
POSIX API returns CPU ticks, so we need to divide by CPU speed.
Definition: StopWatch.h:220
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
This class is used to determine the current process' CPU (user and/or kernel) and wall time.
Definition: StopWatch.h:65
TimeDiff_ accumulated_times_
Definition: StopWatch.h:249
String toString(const T &i)
fallback template for general purpose using Boost::Karma; more specializations below
Definition: StringUtils.h:127
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
clock_t TimeType
Definition: StopWatch.h:219
Definition: StopWatch.h:223