source: trunk/MagicSoft/include-Classes/MBase/MTime.cc@ 499

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