The Gaudi Framework  v33r0 (d5ea422b)
Time.icpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  backwards_compatibility_hack_time_timespan
 

Namespaces

 Gaudi
 Header file for std:chrono::duration-based Counters.
 

Macros

#define GAUDIKERNEL_TIME_ICPP   1
 

Functions

std::ostreamGaudi::operator<< (std::ostream &out, const Gaudi::Time &time)
 Output operator. More...
 
std::ostreamGaudi::operator<< (std::ostream &out, const Gaudi::TimeSpan &time)
 Output operator. More...
 
Gaudi::Time operator+ (const Gaudi::Time &t, const Gaudi::TimeSpan &ts)
 
Gaudi::Time operator+ (const Gaudi::TimeSpan &ts, const Gaudi::Time &t)
 
Gaudi::TimeSpan operator- (const Gaudi::Time &t1, const Gaudi::Time &t2)
 
Gaudi::Time operator- (const Gaudi::Time &t, const Gaudi::TimeSpan &ts)
 
bool operator! (const Gaudi::Time &t)
 
Gaudi::TimeSpan operator+ (const Gaudi::TimeSpan &ts)
 
Gaudi::TimeSpan operator- (const Gaudi::TimeSpan &ts)
 
bool operator! (const Gaudi::TimeSpan &ts)
 
StreamBufferoperator<< (StreamBuffer &s, const Gaudi::Time &t)
 
StreamBufferoperator>> (StreamBuffer &s, Gaudi::Time &t)
 
bool operator< (backwards_compatibility_hack_time_timespan, backwards_compatibility_hack_time_timespan)
 

Macro Definition Documentation

◆ GAUDIKERNEL_TIME_ICPP

#define GAUDIKERNEL_TIME_ICPP   1

Definition at line 12 of file Time.icpp.

Function Documentation

◆ operator!() [1/2]

bool operator! ( const Gaudi::Time t)
inline

Definition at line 191 of file Time.icpp.

191 { return !t.ns(); }
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:38

◆ operator!() [2/2]

bool operator! ( const Gaudi::TimeSpan ts)
inline

Definition at line 201 of file Time.icpp.

201 { return !ts.ns(); }

◆ operator+() [1/3]

Gaudi::Time operator+ ( const Gaudi::Time t,
const Gaudi::TimeSpan ts 
)
inline

Definition at line 175 of file Time.icpp.

175  {
176  return Gaudi::Time( t.ns() + ts.ns() );
177 }
Based on seal::Time.
Definition: Time.h:241
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:38

◆ operator+() [2/3]

Gaudi::Time operator+ ( const Gaudi::TimeSpan ts,
const Gaudi::Time t 
)
inline

Definition at line 179 of file Time.icpp.

179  {
180  return Gaudi::Time( t.ns() + ts.ns() );
181 }
Based on seal::Time.
Definition: Time.h:241
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:38

◆ operator+() [3/3]

Gaudi::TimeSpan operator+ ( const Gaudi::TimeSpan ts)
inline

Definition at line 197 of file Time.icpp.

197 { return ts; }

◆ operator-() [1/3]

Gaudi::TimeSpan operator- ( const Gaudi::Time t1,
const Gaudi::Time t2 
)
inline

Definition at line 183 of file Time.icpp.

183  {
184  return Gaudi::TimeSpan( t1.ns() - t2.ns() );
185 }
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:38
Based on seal::TimeSpan.
Definition: Time.h:62

◆ operator-() [2/3]

Gaudi::Time operator- ( const Gaudi::Time t,
const Gaudi::TimeSpan ts 
)
inline

Definition at line 187 of file Time.icpp.

187  {
188  return Gaudi::Time( t.ns() - ts.ns() );
189 }
Based on seal::Time.
Definition: Time.h:241
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:38

◆ operator-() [3/3]

Gaudi::TimeSpan operator- ( const Gaudi::TimeSpan ts)
inline

Definition at line 199 of file Time.icpp.

199 { return Gaudi::TimeSpan( -ts.ns() ); }
Based on seal::TimeSpan.
Definition: Time.h:62

◆ operator<()

Definition at line 220 of file Time.icpp.

220  {
221  return false;
222 }

◆ operator<<()

StreamBuffer& operator<< ( StreamBuffer s,
const Gaudi::Time t 
)
inline

Definition at line 206 of file Time.icpp.

206 { return s << t.ns(); }
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:38
string s
Definition: gaudirun.py:328

◆ operator>>()

StreamBuffer& operator>> ( StreamBuffer s,
Gaudi::Time t 
)
inline

Definition at line 208 of file Time.icpp.

208  {
210  s >> tmp;
211  t = Gaudi::Time( tmp );
212  return s;
213 }
Based on seal::Time.
Definition: Time.h:241
string s
Definition: gaudirun.py:328
long long ValueType
Definition: Time.h:245