Mercurial > hg > truffle
comparison src/os/windows/vm/os_windows.cpp @ 61:5a76ab815e34
6667833: Remove CacheTimeMillis
Summary: Remove -XX:+CacheTimeMillis option and associated functionality
Reviewed-by: acorn, never
author | sbohne |
---|---|
date | Wed, 19 Mar 2008 09:58:01 -0400 |
parents | a61af66fc99e |
children | cd0742ba123c |
comparison
equal
deleted
inserted
replaced
60:8d84e28e68ba | 61:5a76ab815e34 |
---|---|
730 result.dwHighDateTime = high(a); | 730 result.dwHighDateTime = high(a); |
731 result.dwLowDateTime = low(a); | 731 result.dwLowDateTime = low(a); |
732 return result; | 732 return result; |
733 } | 733 } |
734 | 734 |
735 jlong os::timeofday() { | |
736 FILETIME wt; | |
737 GetSystemTimeAsFileTime(&wt); | |
738 return windows_to_java_time(wt); | |
739 } | |
740 | |
741 | |
742 // Must return millis since Jan 1 1970 for JVM_CurrentTimeMillis | |
743 // _use_global_time is only set if CacheTimeMillis is true | |
744 jlong os::javaTimeMillis() { | 735 jlong os::javaTimeMillis() { |
745 if (UseFakeTimers) { | 736 if (UseFakeTimers) { |
746 return fake_time++; | 737 return fake_time++; |
747 } else { | 738 } else { |
748 return (_use_global_time ? read_global_time() : timeofday()); | 739 FILETIME wt; |
740 GetSystemTimeAsFileTime(&wt); | |
741 return windows_to_java_time(wt); | |
749 } | 742 } |
750 } | 743 } |
751 | 744 |
752 #define NANOS_PER_SEC CONST64(1000000000) | 745 #define NANOS_PER_SEC CONST64(1000000000) |
753 #define NANOS_PER_MILLISEC 1000000 | 746 #define NANOS_PER_MILLISEC 1000000 |