summaryrefslogtreecommitdiff
path: root/utils/Time.h
blob: a56615a87e0cb1a103f55bb0dcfaaa8fc9a4fc06 (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
/*
 *	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 IvlTimeStamp {
protected:
	Millisecond	Value;
public:
		IvlTimeStamp  ();
inline	operator Millisecond () const		{ return Value; }
	const char*	AsString () const;
};

class IvlTime {
protected:
	Millisecond	Offset;
public:
		IvlTime (Millisecond = 0);
	IvlTime&	operator = (Millisecond);
	operator Millisecond () const;
};

#endif	/* Time_H_ */