Go to the documentation of this file.
23 #define GAUDIKERNEL_TIMING_CPP
33 # include <sys/time.h>
34 # include <sys/times.h>
39 static const long long UNIX_BASE_TIME = 116444736000000000;
41 static const long long UNIX_BASE_TIME = 0;
88 long long count = 10000;
90 count *= ::GetTickCount();
93 count *= 10 * times( &buf );
129 static long long sys_start = 0;
130 if ( 0 == sys_start ) {
133 sys_start = 10 *
c -
t;
146 long long created = 0;
181 long long kerneltime = 0;
190 long long usertime = 0;
198 long long cputime = 0;
Process/Thread System and User Time NtQueryInformationProcess using ProcessTimes NtQueryInformationTh...
template long long currentTime< Month >()
InfoType
Enumeration for fetching information.
long long adjustTime< Month >(long long t)
GAUDI_API long long remainingTime(TimeType typ=milliSec, InfoType fetch=Quota, long pid=-1)
Maximum processing time left for this process.
template long long currentTime< Hour >()
TimeType
Time type for conversion.
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< Year >()
GAUDI_API long long ellapsedTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Elapsed time since start of process in milliseconds.
long long adjustTime< milliSec >(long long t)
long long adjustTime< Day >(long long t)
long long adjustTime< Year >(long long t)
long long adjustTime< Native >(long long t)
Process Quotas NtQueryInformationProcess using ProcessQuotaLimits NtQueryInformationProcess using Pro...
template long long currentTime< milliSec >()
Simple class to hold the time information of a process.
GAUDI_API long long tickCount()
Retrieve the number of ticks since system startup.
GAUDI_API long long currentTime()
Retrieve absolute system time.
long long adjustTime< nanoSec >(long long t)
long long adjustTime< microSec >(long long t)
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 userTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
CPU user mode time of process in milliseconds.
template long long currentTime< microSec >()
template long long currentTime< Min >()
long long adjustTime< Min >(long long t)
long long adjustTime< Hour >(long long t)
template long long currentTime< Sec >()
long long adjustTime< Sec >(long long t)
template long long currentTime< Native >()
template long long currentTime< Day >()
GAUDI_API long long adjustTime(TimeType typ, long long timevalue)
Convert time from OS native time to requested representation (Experts only)
ProcessDescriptor * getProcess()
Retrieve Process structure.
Note: OS specific details for environment resolution.
GAUDI_API ProcessTime getProcessTime(long pid=-1)
Retrieve the process time data for a process.
GAUDI_API long long systemStart(TimeType typ=Sec)
Maximum processing time left for this process.
template long long currentTime< nanoSec >()
GAUDI_API long long creationTime(TimeType typ=milliSec, InfoType fetch=Times, long pid=-1)
Process Creation time.