GENIE
Timing.h
Go to the documentation of this file.
1 
5 #ifndef TIMING_H_
6 #define TIMING_H_
7 
8 #include <string>
9 
10 namespace genie
11 {
12 namespace utility
13 {
14 
20 std::string currentDateTime();
21 
27 unsigned long long getTime();
28 
37 double getInterval(unsigned long long start, unsigned long long stop);
38 
39 } // namespace utility
40 } // namesapce genie
41 
42 #endif /* TIMING_H_ */
This is the top-level namespace of the project.
unsigned long long getTime()
Get system time.
Definition: Timing.cc:22
std::string currentDateTime()
Get current data time.
Definition: Timing.cc:10
double getInterval(unsigned long long start, unsigned long long stop)
Calculate time interval from start to end.
Definition: Timing.cc:36