/*! ========================================================================
** 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.
**
#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 ===================================================== */
protected:
typedef __int64 timestamp;
-
+
static void
get_current_time(timestamp &x)
{ QueryPerformanceCounter((LARGE_INTEGER*)&x);}
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