00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014 #ifndef GAUDIKERNEL_TIMING_H
00015 #define GAUDIKERNEL_TIMING_H
00016
00017
00018 #include "GaudiKernel/Kernel.h"
00019 #include "GaudiKernel/SystemBase.h"
00020
00051 namespace System {
00053 enum TimeType { Year, Month, Day, Hour, Min, Sec, milliSec, microSec, nanoSec };
00055 longlong adjustTime(TimeType typ, longlong timevalue);
00061 longlong ellapsedTime(TimeType typ = milliSec, InfoType fetch = Times, long pid = -1);
00069 longlong kernelTime(TimeType typ = milliSec, InfoType fetch = Times, long pid = -1);
00077 longlong userTime(TimeType typ = milliSec, InfoType fetch = Times, long pid = -1);
00085 longlong cpuTime(TimeType typ = milliSec, InfoType fetch = Times, long pid = -1);
00093 longlong remainingTime(TimeType typ = milliSec, InfoType fetch = Quota, long pid = -1);
00101 longlong creationTime(TimeType typ = milliSec, InfoType fetch = Times, long pid = -1);
00106 longlong systemStart(TimeType typ = Sec);
00111 longlong upTime(TimeType typ = Hour);
00116 longlong currentTime(TimeType typ = milliSec);
00120 longlong tickCount();
00121 }
00122 #endif // GAUDIKERNEL_TIMING_H