summaryrefslogtreecommitdiff
path: root/tools.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-01-04 11:06:45 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2005-01-04 11:06:45 +0100
commitf894ce7e00232d3f1ac76d48a14bdf5a8bc17594 (patch)
tree96df068005b7de4d6fcd78a2b4415387e7c6ec8d /tools.c
parentab177a1579371aef6d03c11509717cdf6855b8d7 (diff)
downloadvdr-f894ce7e00232d3f1ac76d48a14bdf5a8bc17594.tar.gz
vdr-f894ce7e00232d3f1ac76d48a14bdf5a8bc17594.tar.bz2
Made cTimeMs::Now() static
Diffstat (limited to 'tools.c')
-rw-r--r--tools.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools.c b/tools.c
index ebe9833c..af2a73c3 100644
--- a/tools.c
+++ b/tools.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.c 1.86 2004/12/26 11:23:35 kls Exp $
+ * $Id: tools.c 1.87 2005/01/04 11:06:45 kls Exp $
*/
#include "tools.h"
@@ -464,6 +464,14 @@ cTimeMs::cTimeMs(void)
Set();
}
+uint64 cTimeMs::Now(void)
+{
+ struct timeval t;
+ if (gettimeofday(&t, NULL) == 0)
+ return (uint64(t.tv_sec)) * 1000 + t.tv_usec / 1000;
+ return 0;
+}
+
void cTimeMs::Set(int Ms)
{
begin = Now() + Ms;
@@ -474,14 +482,6 @@ bool cTimeMs::TimedOut(void)
return Now() >= begin;
}
-uint64 cTimeMs::Now(void)
-{
- struct timeval t;
- if (gettimeofday(&t, NULL) == 0)
- return (uint64(t.tv_sec)) * 1000 + t.tv_usec / 1000;
- return 0;
-}
-
uint64 cTimeMs::Elapsed(void)
{
return Now() - begin;