Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  v31r0 (aeb156f0)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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 181 of file Time.icpp.

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

Definition at line 191 of file Time.icpp.

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

Definition at line 165 of file Time.icpp.

165  {
166  return Gaudi::Time( t.ns() + ts.ns() );
167 }
ValueType ns() const
Return the time span as nanoseconds.
Definition: Time.icpp:105
Based on seal::Time.
Definition: Time.h:231
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:28
Gaudi::Time operator+ ( const Gaudi::TimeSpan ts,
const Gaudi::Time t 
)
inline

Definition at line 169 of file Time.icpp.

169  {
170  return Gaudi::Time( t.ns() + ts.ns() );
171 }
ValueType ns() const
Return the time span as nanoseconds.
Definition: Time.icpp:105
Based on seal::Time.
Definition: Time.h:231
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:28
Gaudi::TimeSpan operator+ ( const Gaudi::TimeSpan ts)
inline

Definition at line 187 of file Time.icpp.

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

Definition at line 173 of file Time.icpp.

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

Definition at line 177 of file Time.icpp.

177  {
178  return Gaudi::Time( t.ns() - ts.ns() );
179 }
ValueType ns() const
Return the time span as nanoseconds.
Definition: Time.icpp:105
Based on seal::Time.
Definition: Time.h:231
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:28
Gaudi::TimeSpan operator- ( const Gaudi::TimeSpan ts)
inline

Definition at line 189 of file Time.icpp.

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

Definition at line 210 of file Time.icpp.

210  {
211  return false;
212 }
StreamBuffer& operator<< ( StreamBuffer s,
const Gaudi::Time t 
)
inline

Definition at line 196 of file Time.icpp.

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

Definition at line 198 of file Time.icpp.

198  {
200  s >> tmp;
201  t = Gaudi::Time( tmp );
202  return s;
203 }
Based on seal::Time.
Definition: Time.h:231
string s
Definition: gaudirun.py:312
long long ValueType
Definition: Time.h:235