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
143 return getUserTime() + getSystemTime();
180 bool operator==(
const StopWatch & stop_watch)
const;
191 return !(*
this == stop_watch);
202 return getCPUTime() < stop_watch.
getCPUTime();
213 return !(stop_watch < *
this);
224 return !(*
this < stop_watch);
235 return stop_watch < *
this;
249 #ifdef OPENMS_WINDOWSPLATFORM
250 static PointerSizeInt clock_speed_;
251 typedef OPENMS_UINT64_TYPE
TimeType;
286 #endif // OPENMS_SYSTEM_STOPWATCH_H
bool isRunning() const
Definition: StopWatch.h:168
A more convenient string class.
Definition: String.h:56
StopWatch Class.
Definition: StopWatch.h:62
bool operator>(const StopWatch &stop_watch) const
Definition: StopWatch.h:233
PointerSizeInt current_usecs_
Definition: StopWatch.h:275
TimeType current_system_time_
Definition: StopWatch.h:281
bool operator!=(const StopWatch &stop_watch) const
Definition: StopWatch.h:189
TimeType current_user_time_
Definition: StopWatch.h:278
PointerSizeInt start_usecs_
Definition: StopWatch.h:263
TimeType start_system_time_
Definition: StopWatch.h:269
PointerSizeInt start_secs_
Definition: StopWatch.h:260
static PointerSizeInt cpu_speed_
Definition: StopWatch.h:247
bool is_running_
Definition: StopWatch.h:257
DoubleReal getCPUTime() const
Definition: StopWatch.h:141
bool operator<=(const StopWatch &stop_watch) const
Definition: StopWatch.h:211
PointerSizeInt current_secs_
Definition: StopWatch.h:272
bool operator>=(const StopWatch &stop_watch) const
Definition: StopWatch.h:222
TimeType start_user_time_
Definition: StopWatch.h:266
bool operator<(const StopWatch &stop_watch) const
Definition: StopWatch.h:200
clock_t TimeType
Definition: StopWatch.h:253