7#ifndef BALL_SYSTEM_TIMER_H
8#define BALL_SYSTEM_TIMER_H
14#ifdef BALL_HAS_SYS_TIME_H
109 double getCPUTime()
const;
133 bool isRunning()
const;
142 bool operator == (
const Timer& timer)
const;
151 bool operator != (
const Timer& timer)
const;
159 bool operator < (
const Timer& timer)
const;
167 bool operator <= (
const Timer& timer)
const;
175 bool operator >= (
const Timer& timer)
const;
183 bool operator > (
const Timer& timer)
const;
193 bool isValid()
const;
197 void dump(::std::ostream& s = ::std::cout,
Size depth = 0L)
const;
207 #ifdef BALL_HAS_WINDOWS_PERFORMANCE_COUNTER
221 clock_t last_user_time_;
224 clock_t last_system_time_;
233 clock_t current_user_time_;
236 clock_t current_system_time_;
239# ifndef BALL_NO_INLINE_FUNCTIONS
BALL_POINTERSIZEUINT_TYPE PointerSizeUInt
BALL_ULONG64_TYPE LongSize
double getUserTime() const
void dump(::std::ostream &s=::std::cout, Size depth=0L) const
double getClockTime() const
double getSystemTime() const