X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=ETL%2Ftrunk%2FETL%2F_clock_win32hpcount.h;h=561a9d4e8c84c708aaba917d64a90b61081be03b;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=ec32accd48354f8e796d72105ca24a7899a85968;hpb=b3016b249333ac0ab0008d8c6c4d9029b2ff30c9;p=synfig.git diff --git a/ETL/trunk/ETL/_clock_win32hpcount.h b/ETL/trunk/ETL/_clock_win32hpcount.h index ec32acc..561a9d4 100644 --- a/ETL/trunk/ETL/_clock_win32hpcount.h +++ b/ETL/trunk/ETL/_clock_win32hpcount.h @@ -1,7 +1,7 @@ /*! ======================================================================== ** Extended Template and Library ** Win32 Clock Description Implementation -** $Id: _clock_win32hpcount.h,v 1.1.1.1 2005/01/04 01:31:47 darco Exp $ +** $Id$ ** ** Copyright (c) 2002 Robert B. Quattlebaum Jr. ** @@ -36,7 +36,7 @@ #if defined(__GNUG__) && defined(__int64) #undef __int64 -#define __int64 long long int +#define __int64 long long int #endif /* === T Y P E D E F S ===================================================== */ @@ -72,7 +72,7 @@ public: protected: typedef __int64 timestamp; - + static void get_current_time(timestamp &x) { QueryPerformanceCounter((LARGE_INTEGER*)&x);} @@ -80,14 +80,14 @@ protected: static timestamp get_current_time() { timestamp ret; QueryPerformanceCounter((LARGE_INTEGER*)&ret); return ret; } - + static value_type timestamp_to_seconds(const timestamp &x) - { return precision()*x; } + { return precision()*x; } static timestamp seconds_to_timestamp(const value_type &x) - { return (timestamp)(x/precision()); } + { return (timestamp)(x/precision()); } }; _ETL_END_NAMESPACE