diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2020-06-23 15:52:29 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2020-06-23 15:52:29 +0200 |
commit | 35b95c2b004a6418414e6889d5d3b810edc3e496 (patch) | |
tree | 17ea94dc33ed569667d03ad58b99a67033664ef3 | |
parent | 7630f579e18cc122fabdcca3a7c113c8dcbd7632 (diff) | |
download | vdr-35b95c2b004a6418414e6889d5d3b810edc3e496.tar.gz vdr-35b95c2b004a6418414e6889d5d3b810edc3e496.tar.bz2 |
Added a comment about the semantics of cTimeMs::Set()
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | tools.h | 8 |
2 files changed, 9 insertions, 2 deletions
@@ -9453,7 +9453,7 @@ Video Disk Recorder Revision History The version numbers (both VDRVERSNUM and APIVERSNUM) have been bumped to 2.4.2, so that plugins can detect the presence of the new cControl::Control(). -2020-06-19: Version 2.4.3 +2020-06-23: Version 2.4.3 - Added a missing '-D' to the 'plugins' target of the Makefile (thanks to Johann Friedrichs). @@ -9485,3 +9485,4 @@ Video Disk Recorder Revision History the Makefiles of the plugins that come with the VDR source. - Fixed a typo in svdrp.c (thanks to Tobias Grimm). - Added support for HEVC-video and AC-4-audio (thanks to Christoph Haubrich). +- Added a comment about the semantics of cTimeMs::Set(). @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 4.16 2018/03/04 14:06:36 kls Exp $ + * $Id: tools.h 4.17 2020/06/23 15:52:29 kls Exp $ */ #ifndef __TOOLS_H @@ -376,6 +376,12 @@ public: ///< time. static uint64_t Now(void); void Set(int Ms = 0); + ///< Sets the timer. If Ms is 0, call Elapsed() to get the number of milliseconds + ///< since the timer has been set. If Ms is greater than 0, TimedOut() returns + ///< true as soon as Ms milliseconds have passed since calling Set(). If Ms is + ///< negative, results are undefined. + ///< Depending on the value of Ms, an object of cTimeMs can handle either + ///< timeouts or elapsed times, not both at the same time. bool TimedOut(void) const; uint64_t Elapsed(void) const; }; |