The Gaudi Framework  v29r0 (ff2e7097)
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
 Helper functions to set/get the application return code.
 

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

#define GAUDIKERNEL_TIME_ICPP   1

Definition at line 2 of file Time.icpp.

Function Documentation

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

Definition at line 200 of file Time.icpp.

200 { return !t.ns(); }
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:32
bool operator! ( const Gaudi::TimeSpan ts)
inline

Definition at line 210 of file Time.icpp.

210 { return !ts.ns(); }
ValueType ns() const
Return the time span as nanoseconds.
Definition: Time.icpp:113
Gaudi::Time operator+ ( const Gaudi::Time t,
const Gaudi::TimeSpan ts 
)
inline

Definition at line 180 of file Time.icpp.

181 {
182  return Gaudi::Time( t.ns() + ts.ns() );
183 }
ValueType ns() const
Return the time span as nanoseconds.
Definition: Time.icpp:113
Based on seal::Time.
Definition: Time.h:237
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:32
Gaudi::Time operator+ ( const Gaudi::TimeSpan ts,
const Gaudi::Time t 
)
inline

Definition at line 185 of file Time.icpp.

186 {
187  return Gaudi::Time( t.ns() + ts.ns() );
188 }
ValueType ns() const
Return the time span as nanoseconds.
Definition: Time.icpp:113
Based on seal::Time.
Definition: Time.h:237
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:32
Gaudi::TimeSpan operator+ ( const Gaudi::TimeSpan ts)
inline

Definition at line 206 of file Time.icpp.

206 { return ts; }
Gaudi::TimeSpan operator- ( const Gaudi::Time t1,
const Gaudi::Time t2 
)
inline

Definition at line 190 of file Time.icpp.

191 {
192  return Gaudi::TimeSpan( t1.ns() - t2.ns() );
193 }
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:32
Based on seal::TimeSpan.
Definition: Time.h:55
Gaudi::Time operator- ( const Gaudi::Time t,
const Gaudi::TimeSpan ts 
)
inline

Definition at line 195 of file Time.icpp.

196 {
197  return Gaudi::Time( t.ns() - ts.ns() );
198 }
ValueType ns() const
Return the time span as nanoseconds.
Definition: Time.icpp:113
Based on seal::Time.
Definition: Time.h:237
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:32
Gaudi::TimeSpan operator- ( const Gaudi::TimeSpan ts)
inline

Definition at line 208 of file Time.icpp.

208 { return Gaudi::TimeSpan( -ts.ns() ); }
ValueType ns() const
Return the time span as nanoseconds.
Definition: Time.icpp:113
Based on seal::TimeSpan.
Definition: Time.h:55

Definition at line 231 of file Time.icpp.

232 {
233  return false;
234 }
StreamBuffer& operator<< ( StreamBuffer s,
const Gaudi::Time t 
)
inline

Definition at line 215 of file Time.icpp.

215 { 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:32
StreamBuffer& operator>> ( StreamBuffer s,
Gaudi::Time t 
)
inline

Definition at line 217 of file Time.icpp.

218 {
220  s >> tmp;
221  t = Gaudi::Time( tmp );
222  return s;
223 }
longlong ValueType
Definition: Time.h:242
Based on seal::Time.
Definition: Time.h:237
string s
Definition: gaudirun.py:253