Main Page
Class Categories
Classes
Namespaces
File List
File Members
exper-sw
cosmosw
AugerSW
Offline
source
main
Utilities
Time
RealTimeStopwatch.h
Go to the documentation of this file.
1
#ifndef _utl_RealTimeStopwatch_h_
2
#define _utl_RealTimeStopwatch_h_
3
4
#include <sys/time.h>
5
#include <utl/AugerUnits.h>
6
7
namespace
utl {
8
19
class
RealTimeStopwatch
{
20
21
public
:
22
RealTimeStopwatch
(
const
bool
start =
true
);
23
24
void
Reset
();
25
void
Start
();
27
double
Stop
();
28
double
GetTime
();
29
30
private
:
31
bool
fIsStopped
;
32
struct
timeval
fStart
;
33
double
fTimeSum
;
34
35
};
36
37
}
// namespace utl
38
39
#endif
40
41
// Configure (x)emacs for this file ...
42
// Local Variables:
43
// mode: c++
44
// End:
utl::RealTimeStopwatch::Start
void Start()
Definition:
RealTimeStopwatch.cc:25
utl::RealTimeStopwatch::fStart
struct timeval fStart
Definition:
RealTimeStopwatch.h:32
utl::RealTimeStopwatch::fTimeSum
double fTimeSum
Definition:
RealTimeStopwatch.h:33
utl::RealTimeStopwatch
Definition:
RealTimeStopwatch.h:19
utl::RealTimeStopwatch::GetTime
double GetTime()
Definition:
RealTimeStopwatch.cc:51
utl::RealTimeStopwatch::Reset
void Reset()
Definition:
RealTimeStopwatch.cc:17
utl::RealTimeStopwatch::RealTimeStopwatch
RealTimeStopwatch(const bool start=true)
Definition:
RealTimeStopwatch.cc:7
utl::RealTimeStopwatch::Stop
double Stop()
returns time since last call to Start()
Definition:
RealTimeStopwatch.cc:35
utl::RealTimeStopwatch::fIsStopped
bool fIsStopped
Definition:
RealTimeStopwatch.h:31
, generated on Tue Sep 26 2023.