mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
Merge
This commit is contained in:
commit
c2c3f0fe72
21 changed files with 106 additions and 210 deletions
|
@ -737,20 +737,13 @@ FILETIME java_to_windows_time(jlong l) {
|
|||
return result;
|
||||
}
|
||||
|
||||
jlong os::timeofday() {
|
||||
FILETIME wt;
|
||||
GetSystemTimeAsFileTime(&wt);
|
||||
return windows_to_java_time(wt);
|
||||
}
|
||||
|
||||
|
||||
// Must return millis since Jan 1 1970 for JVM_CurrentTimeMillis
|
||||
// _use_global_time is only set if CacheTimeMillis is true
|
||||
jlong os::javaTimeMillis() {
|
||||
if (UseFakeTimers) {
|
||||
return fake_time++;
|
||||
} else {
|
||||
return (_use_global_time ? read_global_time() : timeofday());
|
||||
FILETIME wt;
|
||||
GetSystemTimeAsFileTime(&wt);
|
||||
return windows_to_java_time(wt);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue