user32/tests: Improve timer measurement method.
[wine.git] / include / msvcrt / corecrt_wtime.h
blob9d96f1a171cfdea41e288faca44f41a80f3acbbe
1 /**
2 * This file has no copyright assigned and is placed in the Public Domain.
3 * This file is part of the Wine project.
4 */
6 #ifndef _WTIME_DEFINED
7 #define _WTIME_DEFINED
9 #include <corecrt.h>
11 struct tm {
12 int tm_sec;
13 int tm_min;
14 int tm_hour;
15 int tm_mday;
16 int tm_mon;
17 int tm_year;
18 int tm_wday;
19 int tm_yday;
20 int tm_isdst;
23 #if defined(_USE_32BIT_TIME_T) && !defined(_UCRT)
24 #define _wctime32 _wctime
25 #endif
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
31 _ACRTIMP wchar_t* __cdecl _wasctime(const struct tm*);
32 _ACRTIMP size_t __cdecl wcsftime(wchar_t*,size_t,const wchar_t*,const struct tm*);
33 _ACRTIMP wchar_t* __cdecl _wctime32(const __time32_t*);
34 _ACRTIMP wchar_t* __cdecl _wctime64(const __time64_t*);
35 _ACRTIMP wchar_t* __cdecl _wstrdate(wchar_t*);
36 _ACRTIMP errno_t __cdecl _wstrdate_s(wchar_t*,size_t);
37 _ACRTIMP wchar_t* __cdecl _wstrtime(wchar_t*);
38 _ACRTIMP errno_t __cdecl _wstrtime_s(wchar_t*,size_t);
40 #ifndef _USE_32BIT_TIME_T
41 static inline wchar_t* _wctime(const time_t *t) { return _wctime64(t); }
42 #elif defined(_UCRT)
43 static inline wchar_t* _wctime(const time_t *t) { return _wctime32(t); }
44 #endif
46 #ifdef __cplusplus
48 #endif
50 #endif /* _WTIME_DEFINED */