source: trunk/MagicSoft/Mars/mbase/MTime.cc@ 458

Last change on this file since 458 was 458, checked in by tbretz, 24 years ago
*** empty log message ***
File size: 1.5 KB
Line 
1/////////////////////////////////////////////////////////////////////////////
2// //
3// MTime //
4// //
5// A generalized MARS time stamp //
6// //
7/////////////////////////////////////////////////////////////////////////////
8
9#include "MTime.h"
10
11#include <iostream.h>
12#include <iomanip.h>
13
14ClassImp(MTime)
15
16void MTime::Print(Option_t *)
17{
18 cout << "MTime Information: " << hex
19 << " 0x" <<setfill('0') << setw(2) << fTimeStamp[0]
20 << " 0x" <<setfill('0') << setw(2) << fTimeStamp[1] << endl << endl;
21}
22 /*
23inline Bool_t operator<(MTime &t1, MTime &t2)
24{
25 return (t1.GetTimeHi()<=t2.GetTimeHi()) && (t1.GetTimeLo()<t2.GetTimeLo());
26}
27
28inline Bool_t operator>(MTime &t1, MTime &t2)
29{
30 return (t1.GetTimeHi()>=t2.GetTimeHi()) && (t1.GetTimeLo()>t2.GetTimeLo());
31}
32
33inline Bool_t operator<=(MTime &t1, MTime &t2)
34{
35 return (t1.GetTimeHi()<=t2.GetTimeHi()) && (t1.GetTimeLo()<=t2.GetTimeLo());
36}
37
38inline Bool_t operator>=(MTime &t1, MTime &t2)
39{
40 return (t1.GetTimeHi()>=t2.GetTimeHi()) && (t1.GetTimeLo()>=t2.GetTimeLo());
41}
42
43inline Bool_t operator==(MTime &t1, MTime &t2)
44{
45 return (t1.GetTimeLo()==t2.GetTimeLo()) && (t1.GetTimeHi()==t2.GetTimeHi());
46}
47*/
Note: See TracBrowser for help on using the repository browser.