24# include <sys/times.h>
96 Error(
"Continue",
"stopwatch not started");
113 Error(
"RealTime",
"stopwatch not started");
128 Error(
"CpuTime",
"stopwatch not started");
197 ::Error (
"GetCPUTime",
" Error on GetProcessTimes 0x%lx", (
int)
ret);
233 if (opt && *opt ==
'm') {
239 }
else if (opt && *opt ==
'u') {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
void Printf(const char *fmt,...)
Formats a string in a circular formatting buffer and prints the string.
virtual void Error(const char *method, const char *msgfmt,...) const
Issue error message.
Double_t RealTime()
Stop the stopwatch (if it is running) and return the realtime (in seconds) passed between the start a...
void Start(Bool_t reset=kTRUE)
Start the stopwatch.
static Double_t GetRealTime()
Private static method returning system realtime.
Double_t CpuTime()
Stop the stopwatch (if it is running) and return the cputime (in seconds) passed between the start an...
void Continue()
Resume a stopped stopwatch.
void Stop()
Stop the stopwatch.
TStopwatch()
Create a stopwatch and start it.
static Double_t GetCPUTime()
Private static method returning system CPU time.
void Print(Option_t *option="") const override
Print the real and cpu time passed between the start and stop events.
The TTimeStamp encapsulates seconds and ns since EPOCH.