blob: a7d2a1fc0c780d429bc223f118318fabdf9bf38c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/*
* CENA C++ Utilities
*
* by Stephane Chatty
*
* Copyright 1992
* Centre d'Etudes de la Navigation Aerienne (CENA)
*
* time management
*
* $Id$
* $CurLog$
*/
#ifndef Time_H_
#define Time_H_
#include "cplus_bugs.h"
typedef long Millisecond;
class CcuTimeStamp {
protected:
Millisecond Value;
public:
CcuTimeStamp ();
inline operator Millisecond () const { return Value; }
const char* AsString () const;
};
class CcuTime {
protected:
Millisecond Offset;
public:
CcuTime (Millisecond = 0);
CcuTime& operator = (Millisecond);
operator Millisecond () const;
};
#endif /* Time_H_ */
|