[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libcvd-members] libcvd/cvd timer.h
From: |
Gerhard Reitmayr |
Subject: |
[libcvd-members] libcvd/cvd timer.h |
Date: |
Mon, 02 Apr 2007 15:58:55 +0000 |
CVSROOT: /cvsroot/libcvd
Module name: libcvd
Changes by: Gerhard Reitmayr <gerhard> 07/04/02 15:58:55
Modified files:
cvd : timer.h
Log message:
correct a current time given as double for the timer starttime
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/timer.h?cvsroot=libcvd&r1=1.8&r2=1.9
Patches:
Index: timer.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/timer.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- timer.h 30 Mar 2007 22:19:53 -0000 1.8
+++ timer.h 2 Apr 2007 15:58:54 -0000 1.9
@@ -56,6 +56,12 @@
/// @param tv The current time as a timeval
double conv_ntime(const struct timeval& tv);
+ /// Convert current time given as double by correcting for the
start time
+ /// @param time current time as double
+ double conv_ntime(const double time) const {
+ return time - startTime * 1.e-6;
+ }
+
/// Sets the start time to the current time
double reset();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [libcvd-members] libcvd/cvd timer.h,
Gerhard Reitmayr <=