35 #ifndef OPENMS_SYSTEM_STOPWATCH_H 36 #define OPENMS_SYSTEM_STOPWATCH_H 38 #include <OpenMS/config.h> 43 #ifdef OPENMS_HAS_SYS_TIME_H 47 #ifdef OPENMS_HAS_TIME_H 123 double getClockTime()
const;
128 double getUserTime()
const;
133 double getSystemTime()
const;
141 return getUserTime() + getSystemTime();
178 bool operator==(
const StopWatch & stop_watch)
const;
189 return !(*
this == stop_watch);
200 return getCPUTime() < stop_watch.
getCPUTime();
211 return !(stop_watch < *
this);
222 return !(*
this < stop_watch);
233 return stop_watch < *
this;
247 #ifdef OPENMS_WINDOWSPLATFORM 248 static PointerSizeInt clock_speed_;
284 #endif // OPENMS_SYSTEM_STOPWATCH_H
bool isRunning() const
Definition: StopWatch.h:166
A more convenient string class.
Definition: String.h:57
StopWatch Class.
Definition: StopWatch.h:60
bool operator>(const StopWatch &stop_watch) const
Definition: StopWatch.h:231
PointerSizeInt current_usecs_
Definition: StopWatch.h:273
TimeType current_system_time_
Definition: StopWatch.h:279
bool operator!=(const StopWatch &stop_watch) const
Definition: StopWatch.h:187
TimeType current_user_time_
Definition: StopWatch.h:276
PointerSizeInt start_usecs_
Definition: StopWatch.h:261
TimeType start_system_time_
Definition: StopWatch.h:267
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47
PointerSizeInt start_secs_
Definition: StopWatch.h:258
static PointerSizeInt cpu_speed_
Definition: StopWatch.h:245
bool is_running_
Definition: StopWatch.h:255
bool operator<=(const StopWatch &stop_watch) const
Definition: StopWatch.h:209
PointerSizeInt current_secs_
Definition: StopWatch.h:270
bool operator>=(const StopWatch &stop_watch) const
Definition: StopWatch.h:220
TimeType start_user_time_
Definition: StopWatch.h:264
bool operator<(const StopWatch &stop_watch) const
Definition: StopWatch.h:198
String toString(T i)
toString functions (single argument)
Definition: StringUtils.h:68
clock_t TimeType
Definition: StopWatch.h:251
double getCPUTime() const
Definition: StopWatch.h:139