diff options
author | Patrik Nyblom <[email protected]> | 2013-05-02 17:18:22 +0200 |
---|---|---|
committer | Patrik Nyblom <[email protected]> | 2013-05-02 17:18:22 +0200 |
commit | ab22a60d4e8d7a433789bae44b53305ad0d44cdc (patch) | |
tree | f340e4eb8b3d50e1d5940dcf48da20cb0a0dbe76 /erts | |
parent | be0da3e4417176421c24a226765eb07752f8635c (diff) | |
download | otp-ab22a60d4e8d7a433789bae44b53305ad0d44cdc.tar.gz otp-ab22a60d4e8d7a433789bae44b53305ad0d44cdc.tar.bz2 otp-ab22a60d4e8d7a433789bae44b53305ad0d44cdc.zip |
Enable use of GetTickCoun64 when available
Diffstat (limited to 'erts')
-rw-r--r-- | erts/emulator/sys/win32/sys_time.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/erts/emulator/sys/win32/sys_time.c b/erts/emulator/sys/win32/sys_time.c index 1a33061ef1..f7f0161b58 100644 --- a/erts/emulator/sys/win32/sys_time.c +++ b/erts/emulator/sys/win32/sys_time.c @@ -79,7 +79,6 @@ static int days_in_month[2][13] = { int sys_init_time(void) { - /* char kernel_dll_name[] = "kernel32"; HMODULE module; @@ -88,7 +87,7 @@ sys_init_time(void) (ULONGLONG (WINAPI *)(void)) GetProcAddress(module,"GetTickCount64") : NULL; - */ + if(GetTimeZoneInformation(&static_tzi) && static_tzi.StandardDate.wMonth != 0 && static_tzi.DaylightDate.wMonth != 0) { @@ -96,13 +95,6 @@ sys_init_time(void) } erts_smp_mtx_init(&wrap_lock, "sys_gethrtime"); - /* - * XXX: Debug - remove me! - */ - if (pGetTickCount64 != NULL) { - fprintf(stderr,"got GetTickCount64!\r\n"); - fflush(stderr); - } return 1; } |