From 3a4838bed13b767132cbdf06364b2658da6cc356 Mon Sep 17 00:00:00 2001 From: chatty Date: Tue, 15 Dec 1992 10:55:33 +0000 Subject: Initial revision --- utils/Time.h | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 utils/Time.h (limited to 'utils/Time.h') diff --git a/utils/Time.h b/utils/Time.h new file mode 100644 index 0000000..998a23c --- /dev/null +++ b/utils/Time.h @@ -0,0 +1,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 CcuTimeStamp { +protected: + Millisecond Value; +public: + CcuTimeStamp (); +inline operator Millisecond () const { return Value; } +}; + + +class CcuTime { +protected: + Millisecond Offset; +public: + CcuTime (Millisecond = 0); + CcuTime& operator = (Millisecond); + operator Millisecond () const; +}; + +#endif /* Time_H_ */ + -- cgit v1.1