X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_clock_base.h;h=32d87427d774ce1957c2dd97e0a3060090bf27b9;hb=a7c9fcfbb608e046e4d47b1345064f2f686bd8d6;hp=760d668f9c1ae704e4aa3b7258b1833cf28fe87f;hpb=b3016b249333ac0ab0008d8c6c4d9029b2ff30c9;p=synfig.git diff --git a/ETL/trunk/ETL/_clock_base.h b/ETL/trunk/ETL/_clock_base.h index 760d668..32d8742 100644 --- a/ETL/trunk/ETL/_clock_base.h +++ b/ETL/trunk/ETL/_clock_base.h @@ -1,7 +1,7 @@ /*! ======================================================================== ** Extended Template and Library ** Clock Abstraction Implementation -** $Id: _clock_base.h,v 1.1.1.1 2005/01/04 01:31:46 darco Exp $ +** $Id$ ** ** Copyright (c) 2002 Robert B. Quattlebaum Jr. ** @@ -62,7 +62,7 @@ private: typedef typename DESC::timestamp timestamp; timestamp base_time; - + using DESC::get_current_time; using DESC::realtime; using DESC::one_second; @@ -72,7 +72,7 @@ public: void reset() { get_current_time(base_time); } - + value_type operator()()const { return timestamp_to_seconds(get_current_time()-base_time); } @@ -80,13 +80,13 @@ public: { // Grab the old base time timestamp old_time=base_time; - + // Put the current time into base_time get_current_time(base_time); - + return timestamp_to_seconds(base_time-old_time); } - + static void sleep(const value_type &length) { @@ -99,18 +99,19 @@ public: value_type val; for(val=timer();one_second()