The Gaudi Framework  v28r3 (cc1cf868)
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 208 of file Time.icpp.

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

Definition at line 224 of file Time.icpp.

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

Definition at line 191 of file Time.icpp.

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

Definition at line 195 of file Time.icpp.

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

Definition at line 216 of file Time.icpp.

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

Definition at line 199 of file Time.icpp.

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

Definition at line 203 of file Time.icpp.

203  {
204  return Gaudi::Time (t.ns() - ts.ns());
205 }
ValueType ns() const
Return the time span as nanoseconds.
Definition: Time.icpp:123
Based on seal::Time.
Definition: Time.h:236
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:29
Gaudi::TimeSpan operator- ( const Gaudi::TimeSpan ts)
inline

Definition at line 220 of file Time.icpp.

220  {
221  return Gaudi::TimeSpan (-ts.ns());
222 }
ValueType ns() const
Return the time span as nanoseconds.
Definition: Time.icpp:123
Based on seal::TimeSpan.
Definition: Time.h:53

Definition at line 245 of file Time.icpp.

245  {
246  return false;
247 }
StreamBuffer& operator<< ( StreamBuffer s,
const Gaudi::Time t 
)
inline

Definition at line 231 of file Time.icpp.

231  {
232  return s << t.ns();
233 }
ValueType ns() const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:29
StreamBuffer& operator>> ( StreamBuffer s,
Gaudi::Time t 
)
inline

Definition at line 235 of file Time.icpp.

235  {
237  s >> tmp;
238  t = Gaudi::Time(tmp);
239  return s;
240 }
longlong ValueType
Definition: Time.h:239
Based on seal::Time.
Definition: Time.h:236
string s
Definition: gaudirun.py:245