Skip to content
Permalink
Browse files
8263136: C4530 was reported from VS 2019 at access bridge
Reviewed-by: stuefe, serb
  • Loading branch information
YaSuenag committed Mar 13, 2021
1 parent a528771 commit d339320e0b648e28bcc0c07801ae9376a33fc975
Showing with 8 additions and 7 deletions.
  1. +8 −7 src/jdk.accessibility/windows/native/common/AccessBridgeDebug.cpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -32,7 +32,6 @@
#include <stdio.h>
#include <windows.h>
#include <cstdlib>
#include <chrono>
#include <cstring>

#ifdef __cplusplus
@@ -72,11 +71,13 @@ void finalizeFileLogger() {
}
}

auto getTimeStamp() -> long long {
using namespace std::chrono;
auto timeNow = duration_cast<milliseconds>(steady_clock::now().time_since_epoch());

return timeNow.count();
unsigned long long getTimeStamp() {
FILETIME ft;
ULARGE_INTEGER uli;
GetSystemTimeAsFileTime(&ft);
uli.LowPart = ft.dwLowDateTime;
uli.HighPart = ft.dwHighDateTime;
return (uli.QuadPart / 10000ULL) - 11644473600000ULL; // Rebase Epoch from 1601 to 1970
}

/**

1 comment on commit d339320

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on d339320 Mar 13, 2021

Please sign in to comment.