All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Time.icpp File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Gaudi
 Helper functions to set/get the application return code.
 

Macros

#define GAUDIKERNEL_TIME_ICPP   1
 

Functions

std::ostream & Gaudi::operator<< (std::ostream &out, const Gaudi::Time &time)
 Output operator. More...
 
std::ostream & Gaudi::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 &t1, const Gaudi::Time &t2)
 
bool operator!= (const Gaudi::Time &t1, const Gaudi::Time &t2)
 
bool operator< (const Gaudi::Time &t1, const Gaudi::Time &t2)
 
bool operator<= (const Gaudi::Time &t1, const Gaudi::Time &t2)
 
bool operator> (const Gaudi::Time &t1, const Gaudi::Time &t2)
 
bool operator>= (const Gaudi::Time &t1, const Gaudi::Time &t2)
 
bool operator! (const Gaudi::Time &t)
 
Gaudi::TimeSpan operator+ (const Gaudi::TimeSpan &ts)
 
Gaudi::TimeSpan operator- (const Gaudi::TimeSpan &ts)
 
Gaudi::TimeSpan operator+ (const Gaudi::TimeSpan &ts1, const Gaudi::TimeSpan &ts2)
 
Gaudi::TimeSpan operator- (const Gaudi::TimeSpan &ts1, const Gaudi::TimeSpan &ts2)
 
bool operator== (const Gaudi::TimeSpan &t1, const Gaudi::TimeSpan &t2)
 
bool operator!= (const Gaudi::TimeSpan &t1, const Gaudi::TimeSpan &t2)
 
bool operator< (const Gaudi::TimeSpan &t1, const Gaudi::TimeSpan &t2)
 
bool operator<= (const Gaudi::TimeSpan &t1, const Gaudi::TimeSpan &t2)
 
bool operator> (const Gaudi::TimeSpan &t1, const Gaudi::TimeSpan &t2)
 
bool operator>= (const Gaudi::TimeSpan &t1, const Gaudi::TimeSpan &t2)
 
bool operator! (const Gaudi::TimeSpan &ts)
 
StreamBufferoperator<< (StreamBuffer &s, const Gaudi::Time &t)
 
StreamBufferoperator>> (StreamBuffer &s, Gaudi::Time &t)
 

Macro Definition Documentation

#define GAUDIKERNEL_TIME_ICPP   1

Definition at line 3 of file Time.icpp.

Function Documentation

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

Definition at line 249 of file Time.icpp.

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

Definition at line 309 of file Time.icpp.

309  {
310  return ! ts.ns();
311 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
bool operator!= ( const Gaudi::Time t1,
const Gaudi::Time t2 
)
inline

Definition at line 229 of file Time.icpp.

229  {
230  return t1.ns() != t2.ns();
231 }
ValueType ns(void) const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:33
bool operator!= ( const Gaudi::TimeSpan t1,
const Gaudi::TimeSpan t2 
)
inline

Definition at line 289 of file Time.icpp.

289  {
290  return t1.ns() != t2.ns();
291 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
Gaudi::Time operator+ ( const Gaudi::Time t,
const Gaudi::TimeSpan ts 
)
inline

Definition at line 197 of file Time.icpp.

197  {
198  return Gaudi::Time (t.ns() + ts.ns());
199 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
ValueType ns(void) const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:33
Based on seal::Time.
Definition: Time.h:214
Gaudi::Time operator+ ( const Gaudi::TimeSpan ts,
const Gaudi::Time t 
)
inline

Definition at line 201 of file Time.icpp.

201  {
202  return Gaudi::Time (t.ns() + ts.ns());
203 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
ValueType ns(void) const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:33
Based on seal::Time.
Definition: Time.h:214
Gaudi::TimeSpan operator+ ( const Gaudi::TimeSpan ts)
inline

Definition at line 257 of file Time.icpp.

257  {
258  return ts;
259 }
Gaudi::TimeSpan operator+ ( const Gaudi::TimeSpan ts1,
const Gaudi::TimeSpan ts2 
)
inline

Definition at line 265 of file Time.icpp.

265  {
266  return Gaudi::TimeSpan (ts1.ns() + ts2.ns());
267 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
Based on seal::TimeSpan.
Definition: Time.h:57
Gaudi::TimeSpan operator- ( const Gaudi::Time t1,
const Gaudi::Time t2 
)
inline

Definition at line 205 of file Time.icpp.

205  {
206  return Gaudi::TimeSpan (t1.ns() - t2.ns());
207 }
ValueType ns(void) const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:33
Based on seal::TimeSpan.
Definition: Time.h:57
Gaudi::Time operator- ( const Gaudi::Time t,
const Gaudi::TimeSpan ts 
)
inline

Definition at line 209 of file Time.icpp.

209  {
210  return Gaudi::Time (t.ns() - ts.ns());
211 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
ValueType ns(void) const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:33
Based on seal::Time.
Definition: Time.h:214
Gaudi::TimeSpan operator- ( const Gaudi::TimeSpan ts)
inline

Definition at line 261 of file Time.icpp.

261  {
262  return Gaudi::TimeSpan (-ts.ns());
263 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
Based on seal::TimeSpan.
Definition: Time.h:57
Gaudi::TimeSpan operator- ( const Gaudi::TimeSpan ts1,
const Gaudi::TimeSpan ts2 
)
inline

Definition at line 269 of file Time.icpp.

269  {
270  return Gaudi::TimeSpan (ts1.ns() - ts2.ns());
271 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
Based on seal::TimeSpan.
Definition: Time.h:57
bool operator< ( const Gaudi::Time t1,
const Gaudi::Time t2 
)
inline

Definition at line 233 of file Time.icpp.

233  {
234  return t1.ns() < t2.ns();
235 }
ValueType ns(void) const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:33
bool operator< ( const Gaudi::TimeSpan t1,
const Gaudi::TimeSpan t2 
)
inline

Definition at line 293 of file Time.icpp.

293  {
294  return t1.ns() < t2.ns();
295 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
StreamBuffer& operator<< ( StreamBuffer s,
const Gaudi::Time t 
)
inline

Definition at line 316 of file Time.icpp.

316  {
317  return s << t.ns();
318 }
ValueType ns(void) const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:33
bool operator<= ( const Gaudi::Time t1,
const Gaudi::Time t2 
)
inline

Definition at line 237 of file Time.icpp.

237  {
238  return t1.ns() <= t2.ns();
239 }
ValueType ns(void) const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:33
bool operator<= ( const Gaudi::TimeSpan t1,
const Gaudi::TimeSpan t2 
)
inline

Definition at line 297 of file Time.icpp.

297  {
298  return t1.ns() <= t2.ns();
299 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
bool operator== ( const Gaudi::Time t1,
const Gaudi::Time t2 
)
inline

Definition at line 225 of file Time.icpp.

225  {
226  return t1.ns() == t2.ns();
227 }
ValueType ns(void) const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:33
bool operator== ( const Gaudi::TimeSpan t1,
const Gaudi::TimeSpan t2 
)
inline

Definition at line 285 of file Time.icpp.

285  {
286  return t1.ns() == t2.ns();
287 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
bool operator> ( const Gaudi::Time t1,
const Gaudi::Time t2 
)
inline

Definition at line 241 of file Time.icpp.

241  {
242  return t1.ns() > t2.ns();
243 }
ValueType ns(void) const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:33
bool operator> ( const Gaudi::TimeSpan t1,
const Gaudi::TimeSpan t2 
)
inline

Definition at line 301 of file Time.icpp.

301  {
302  return t1.ns() > t2.ns();
303 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
bool operator>= ( const Gaudi::Time t1,
const Gaudi::Time t2 
)
inline

Definition at line 245 of file Time.icpp.

245  {
246  return t1.ns() >= t2.ns();
247 }
ValueType ns(void) const
Return the time as nanoseconds since 00:00:00 on January 1, 1970 in UTC.
Definition: Time.icpp:33
bool operator>= ( const Gaudi::TimeSpan t1,
const Gaudi::TimeSpan t2 
)
inline

Definition at line 305 of file Time.icpp.

305  {
306  return t1.ns() >= t2.ns();
307 }
ValueType ns(void) const
Return the time span as nanoseconds.
Definition: Time.icpp:129
StreamBuffer& operator>> ( StreamBuffer s,
Gaudi::Time t 
)
inline

Definition at line 320 of file Time.icpp.

320  {
322  s >> tmp;
323  t = Gaudi::Time(tmp);
324  return s;
325 }
longlong ValueType
Definition: Time.h:217
Based on seal::Time.
Definition: Time.h:214
string s
Definition: gaudirun.py:210