Bump external/ikdasm to master.
[mono-project.git] / mono / io-layer / timefuncs.h
blob2097b85788c644c690baa7103c167bd05c27a21e
1 /*
2 * timefuncs.h: performance timer and other time functions
4 * Author:
5 * Dick Porter (dick@ximian.com)
7 * (C) 2002 Ximian, Inc.
8 */
10 #ifndef _WAPI_TIME_H_
11 #define _WAPI_TIME_H_
13 #include <glib.h>
15 #include "mono/io-layer/wapi.h"
17 G_BEGIN_DECLS
19 /* The typical idiom for this struct is to cast it to and from 64bit
20 * ints, hence the endian switch.
22 typedef struct
24 #if G_BYTE_ORDER == G_BIG_ENDIAN
25 guint32 dwHighDateTime;
26 guint32 dwLowDateTime;
27 #else
28 guint32 dwLowDateTime;
29 guint32 dwHighDateTime;
30 #endif
31 } WapiFileTime;
33 extern gboolean QueryPerformanceCounter(WapiLargeInteger *count);
34 extern gboolean QueryPerformanceFrequency(WapiLargeInteger *freq);
35 extern guint32 GetTickCount (void);
37 G_END_DECLS
38 #endif /* _WAPI_TIME_H_ */