12 #ifndef GAUDIKERNEL_TIMING_H
13 #define GAUDIKERNEL_TIMING_H
58 inline long long adjustTime(
long long timevalue);
145 template <TimeType T>
149 template <TimeType T>
153 template <TimeType T>
157 template <TimeType T>
184 return (t==-1) ? t : t /= (1LL * 365 * 24 * 60 * 60 * 1000 * 1000 * 10);
188 return (t==-1) ? t : t /= (1LL * 24 * 60 * 60 * 1000 * 1000 * 10);
192 return (t==-1) ? t : t /= (1LL * 60 * 60 * 1000 * 1000 * 10);
196 return (t==-1) ? t : t /= (60 * 1000 * 1000 * 10);
200 return (t==-1) ? t : t /= (1000 * 1000 * 10);
204 return (t==-1) ? t : t /= (1000 * 10);
208 return (t==-1) ? t : t /= (10LL);
212 return (t==-1) ? t : t *= 100LL;
216 return (t==-1) ? t : t /= (1LL * 30 * 24 * 60 * 60 * 1000 * 1000 * 10);
224 #endif // GAUDIKERNEL_TIMING_H
GAUDI_API longlong userTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
CPU user mode time of process in milliseconds.
ProcessTime(TimeValueType k, TimeValueType u, TimeValueType e)
Constructor.
GAUDI_API longlong systemStart(TimeType typ=Sec)
Maximum processing time left for this process.
TimeValueType kernelTime() const
Retrieve the kernel time in the requested unit.
TimeValueType userTime() const
Retrieve the user time in the requested unit.
ProcessTime operator-(const ProcessTime &rhs) const
Return the delta between two ProcessTime objects.
GAUDI_API longlong cpuTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Consumed CPU time of process in milliseconds.
long long adjustTime< Native >(long long t)
ProcessTime()
Constructor.
long long adjustTime< Month >(long long t)
GAUDI_API longlong ellapsedTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Elapsed time since start of process in milliseconds.
GAUDI_API longlong upTime(TimeType typ=Hour)
Maximum processing time left for this process.
TimeValueType i_kernel
Internal storage.
long long adjustTime< nanoSec >(long long t)
GAUDI_API longlong tickCount()
Retrieve the number of ticks since system startup.
long long adjustTime< Day >(long long t)
GAUDI_API longlong creationTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Process Creation time.
TimeType
Time type for conversion.
GAUDI_API longlong remainingTime(TimeType typ=milliSec, InfoType fetch=Quota, long pid=-1)
Maximum processing time left for this process.
GAUDI_API longlong kernelTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
CPU kernel mode time of process in milliseconds.
long long adjustTime< milliSec >(long long t)
long long adjustTime< Year >(long long t)
Simple class to hold the time information of a process.
long long adjustTime< microSec >(long long t)
long long adjustTime< Min >(long long t)
GAUDI_API longlong adjustTime(TimeType typ, longlong timevalue)
Convert time from OS native time to requested representation (Experts only)
TimeValueType elapsedTime() const
Retrieve the elapsed time in the requested unit.
GAUDI_API ProcessTime getProcessTime(long pid=-1)
Retrieve the process time data for a process.
long long adjustTime< Hour >(long long t)
TimeValueType cpuTime() const
Retrieve the CPU (user+kernel) time in the requested unit.
long long adjustTime< Sec >(long long t)
InfoType
Enumeration for fetching information.
GAUDI_API longlong currentTime(TimeType typ=milliSec)
Retrieve absolute system time.