X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_clock_base.h;h=8f180f5ea6ce03f5313064a3bb9e33c2d0d4a06d;hb=0c1ee13387a61767c675c8e5c448353bb8d48ee2;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..8f180f5 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) { @@ -106,11 +106,11 @@ public: /* This is a different waiting mechanism that uses ** the native timestamp type of the clock rather ** than converting it to a double (or whatever). - ** You would think that this would be at least a + ** You would think that this would be at least a ** few microseconds faster, but a few tests on my ** PowerBook G4 have proved otherwise. Indeed I loose ** several microseconds using this "optimized" method. - ** Bizzare. + ** Bizarre. ** - darco (8-17-2002) { timestamp endtime=get_current_time()+seconds_to_timestamp(length); @@ -120,7 +120,7 @@ public: while(get_current_time()