13 #define GAUDIKERNEL_TIMING_CPP 24 #include <sys/times.h> 29 static const longlong UNIX_BASE_TIME = 116444736000000000;
31 static const longlong UNIX_BASE_TIME = 0;
80 count *= ::GetTickCount();
83 count *= 10 * times( &buf );
122 if ( 0 == sys_start ) {
125 sys_start = 10 * c - t;
Process/Thread System and User Time NtQueryInformationProcess using ProcessTimes NtQueryInformationTh...
GAUDI_API longlong userTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
CPU user mode time of process in milliseconds.
template longlong currentTime< milliSec >()
template longlong currentTime< microSec >()
template longlong currentTime< Min >()
GAUDI_API longlong systemStart(TimeType typ=Sec)
Maximum processing time left for this process.
template longlong currentTime< Month >()
Note: OS specific details for environment resolution.
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)
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.
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.
template longlong currentTime< Hour >()
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.
template longlong currentTime< Day >()
template longlong currentTime< Native >()
template longlong currentTime< nanoSec >()
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)
GAUDI_API longlong currentTime()
Retrieve absolute system time.
long long adjustTime< Min >(long long t)
template longlong currentTime< Sec >()
GAUDI_API longlong adjustTime(TimeType typ, longlong timevalue)
Convert time from OS native time to requested representation (Experts only)
ProcessDescriptor * getProcess()
Retrieve Process structure.
Process Quotas NtQueryInformationProcess using ProcessQuotaLimits NtQueryInformationProcess using Pro...
long query(long pid, InfoType info, PROCESS_BASIC_INFORMATION *buffer)
GAUDI_API ProcessTime getProcessTime(long pid=-1)
Retrieve the process time data for a process.
long long adjustTime< Hour >(long long t)
long long adjustTime< Sec >(long long t)
template longlong currentTime< Year >()
InfoType
Enumeration for fetching information.