TimeInterval.cc
Go to the documentation of this file.
1 #include <utl/AugerUnits.h>
2 #include <utl/TimeInterval.h>
3 #include <cmath>
4 
5 using namespace std;
6 using namespace utl;
7 
8 
12 long
13 TimeInterval::GetSecond()
14  const
15 {
16  return long(floor(fInterval/s));
17 }
18 
19 
20 
24 double
25 TimeInterval::GetNanoSecond()
26  const
27 {
28  return (fInterval/s - double(GetSecond()))*(s/ns);
29 }
constexpr double s
Definition: AugerUnits.h:163
const double ns

, generated on Tue Sep 26 2023.