source: branches/start/MagicSoft/Mars/mbase/MTime.cc@ 9223

Last change on this file since 9223 was 454, checked in by harald, 24 years ago
Import the first sources of the MAGIC Analysis and Reconstruction Software. T. Bretz and H. Kornmayer 20.December 2000
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.