From f4007c7ff3d1f1f686bf3c74399027f7d91de86b Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Mon, 15 Aug 2011 14:13:42 +0200 Subject: cTimeMs is no longer initialized to the current time if the value given to the constructor is negative --- tools.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools.h') diff --git a/tools.h b/tools.h index bc51daed..3d13c191 100644 --- a/tools.h +++ b/tools.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 2.10 2011/08/15 11:50:02 kls Exp $ + * $Id: tools.h 2.11 2011/08/15 14:13:42 kls Exp $ */ #ifndef __TOOLS_H @@ -272,6 +272,8 @@ private: public: cTimeMs(int Ms = 0); ///< Creates a timer with ms resolution and an initial timeout of Ms. + ///< If Ms is negative the timer is not initialized with the current + ///< time. static uint64_t Now(void); void Set(int Ms = 0); bool TimedOut(void); -- cgit v1.2.3