2005-06-05 Peter Bartok <pbartok@novell.com>
[mono.git] / mono / io-layer / timefuncs.h
1 /*
2  * timefuncs.h:  performance timer and other time functions
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2002 Ximian, Inc.
8  */
9
10 #ifndef _WAPI_TIME_H_
11 #define _WAPI_TIME_H_
12
13 #include <glib.h>
14
15 #include "mono/io-layer/wapi.h"
16
17 /* The typical idiom for this struct is to cast it to and from 64bit
18  * ints, hence the endian switch.
19  */
20 typedef struct 
21 {
22 #if G_BYTE_ORDER == G_BIG_ENDIAN
23         guint32 dwHighDateTime;
24         guint32 dwLowDateTime;
25 #else
26         guint32 dwLowDateTime;
27         guint32 dwHighDateTime;
28 #endif
29 } WapiFileTime;
30
31 extern gboolean QueryPerformanceCounter(WapiLargeInteger *count);
32 extern gboolean QueryPerformanceFrequency(WapiLargeInteger *freq);
33 extern guint32 GetTickCount (void);
34
35 #endif /* _WAPI_TIME_H_ */