[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/server SystemClock.cpp SystemClock.h
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/server SystemClock.cpp SystemClock.h |
Date: |
Fri, 07 Dec 2007 13:49:47 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/12/07 13:49:46
Modified files:
server : SystemClock.cpp SystemClock.h
Log message:
Fixed inheritance and missing constructor
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/SystemClock.cpp?cvsroot=gnash&r1=1.1&r2=1.2
http://cvs.savannah.gnu.org/viewcvs/gnash/server/SystemClock.h?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: SystemClock.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/SystemClock.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- SystemClock.cpp 7 Dec 2007 11:45:37 -0000 1.1
+++ SystemClock.cpp 7 Dec 2007 13:49:46 -0000 1.2
@@ -40,6 +40,13 @@
}
/* public */
+SystemClock::SystemClock()
+ :
+ _startTime(fetchSystemTime())
+{
+}
+
+/* public */
unsigned long int
SystemClock::elapsed() const
{
Index: SystemClock.h
===================================================================
RCS file: /sources/gnash/gnash/server/SystemClock.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- SystemClock.h 7 Dec 2007 11:45:37 -0000 1.1
+++ SystemClock.h 7 Dec 2007 13:49:46 -0000 1.2
@@ -36,11 +36,11 @@
/// This class uses the system clock for computing elapsed time.
/// See http://en.wikipedia.org/wiki/System_time for capacity
///
-class SystemClock
+class SystemClock: public VirtualClock
{
public:
- //
+ /// Construct the clock, starting it
SystemClock();
// see VirtualClock.h for dox
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/server SystemClock.cpp SystemClock.h,
Sandro Santilli <=