cygwin needs to link another library now
[mono.git] / mono / io-layer / timefuncs.c
1 /*
2  * timefuncs.c:  performance timer and other time functions
3  *
4  * Author:
5  *      Dick Porter (dick@ximian.com)
6  *
7  * (C) 2002 Ximian, Inc.
8  */
9
10 #include <config.h>
11 #include <glib.h>
12 #include <sys/time.h>
13 #include <stdlib.h>
14
15 #include <mono/io-layer/wapi.h>
16 #include <mono/io-layer/timefuncs-private.h>
17
18 void _wapi_time_t_to_filetime (time_t timeval, WapiFileTime *filetime)
19 {
20         guint64 ticks;
21         
22         ticks = ((guint64)timeval * 10000000) + 116444736000000000UL;
23         filetime->dwLowDateTime = ticks & 0xFFFFFFFF;
24         filetime->dwHighDateTime = ticks >> 32;
25 }
26
27 gboolean QueryPerformanceCounter(WapiLargeInteger *count G_GNUC_UNUSED)
28 {
29         return(FALSE);
30 }
31
32 gboolean QueryPerformanceFrequency(WapiLargeInteger *freq G_GNUC_UNUSED)
33 {
34         return(FALSE);
35 }
36