116 template <TimeType T>
145 template <TimeType T>
151 template <TimeType T>
157 template <TimeType T>
163 template <TimeType T>
197 return ( t == -1 ) ? t : t /= ( 1LL * 365 * 24 * 60 * 60 * 1000 * 1000 * 10 );
201 return ( t == -1 ) ? t : t /= ( 1LL * 24 * 60 * 60 * 1000 * 1000 * 10 );
205 return ( t == -1 ) ? t : t /= ( 1LL * 60 * 60 * 1000 * 1000 * 10 );
209 return ( t == -1 ) ? t : t /= ( 60 * 1000 * 1000 * 10 );
213 return ( t == -1 ) ? t : t /= ( 1000 * 1000 * 10 );
217 return ( t == -1 ) ? t : t /= ( 1000 * 10 );
221 return ( t == -1 ) ? t : t /= ( 10LL );
225 return ( t == -1 ) ? t : t *= 100LL;
229 return ( t == -1 ) ? t : t /= ( 1LL * 30 * 24 * 60 * 60 * 1000 * 1000 * 10 );
237 template <TimeType T>
240 ::gettimeofday( &tv, 0 );
241 return adjustTime<T>( ( tv.tv_sec * 1000000 + tv.tv_usec ) * 10 );
Simple class to hold the time information of a process.
TimeValueType elapsedTime() const
Retrieve the elapsed time in the requested unit.
ProcessTime operator-(const ProcessTime &rhs) const
Return the delta between two ProcessTime objects.
TimeValueType userTime() const
Retrieve the user time in the requested unit.
ProcessTime()
Constructor.
TimeValueType i_kernel
Internal storage.
ProcessTime(TimeValueType k, TimeValueType u, TimeValueType e)
Constructor.
ProcessTime & operator+=(const ProcessTime &rhs)
Add the timings to the current objects.
TimeValueType cpuTime() const
Retrieve the CPU (user+kernel) time in the requested unit.
TimeValueType kernelTime() const
Retrieve the kernel time in the requested unit.
Note: OS specific details for environment resolution.
long long adjustTime< Day >(long long t)
long long adjustTime< Native >(long long t)
GAUDI_API ProcessTime getProcessTime(long pid=-1)
Retrieve the process time data for a process.
TimeType
Time type for conversion.
template long long currentTime< Month >()
long long adjustTime< Year >(long long t)
long long adjustTime< Hour >(long long t)
template long long currentTime< Sec >()
long long adjustTime< nanoSec >(long long t)
long long adjustTime< milliSec >(long long t)
long long adjustTime< microSec >(long long t)
template long long currentTime< milliSec >()
GAUDI_API long long systemStart(TimeType typ=Sec)
Maximum processing time left for this process.
long long adjustTime< Sec >(long long t)
template long long currentTime< microSec >()
GAUDI_API long long kernelTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
CPU kernel mode time of process in milliseconds.
template long long currentTime< Day >()
InfoType
Enumeration for fetching information.
GAUDI_API long long creationTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Process Creation time.
template long long currentTime< Hour >()
GAUDI_API long long adjustTime(TimeType typ, long long timevalue)
Convert time from OS native time to requested representation (Experts only)
long long adjustTime< Month >(long long t)
GAUDI_API long long currentTime()
Retrieve absolute system time.
GAUDI_API long long ellapsedTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Elapsed time since start of process in milliseconds.
template long long currentTime< nanoSec >()
long long adjustTime< Min >(long long t)
template long long currentTime< Native >()
GAUDI_API long long tickCount()
Retrieve the number of ticks since system startup.
template long long currentTime< Min >()
template long long currentTime< Year >()
GAUDI_API long long upTime(TimeType typ=Hour)
Maximum processing time left for this process.
GAUDI_API long long cpuTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Consumed CPU time of process in milliseconds.
GAUDI_API long long remainingTime(TimeType typ=milliSec, InfoType fetch=Quota, long pid=-1)
Maximum processing time left for this process.
GAUDI_API long long userTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
CPU user mode time of process in milliseconds.