summaryrefslogtreecommitdiff
path: root/utils/Time.h
blob: 58718c004cb9d0d7af7bb22d49c23976b44b28c6 (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
43
44
45
46
/*
 *	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_

#ifdef __GNUG__
#pragma interface
#endif

#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_ */