From 5eeef9bee3aec49aae700c5ed7d6bb18fefb004d Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sun, 3 Feb 2019 02:35:39 +0100 Subject: [PATCH] Move Interop.GetTimestamp.cs to shared CoreLib partition. (dotnet/coreclr#35031) Signed-off-by: dotnet-bot Commit migrated from https://github.com/dotnet/coreclr/commit/4dc930ea7b1aa429eb30f2ee0b460d5edf5a244f --- .../Interop/Unix/System.Native/Interop.GetTimestamp.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.GetTimestamp.cs diff --git a/src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.GetTimestamp.cs b/src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.GetTimestamp.cs new file mode 100644 index 0000000..e791807 --- /dev/null +++ b/src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.GetTimestamp.cs @@ -0,0 +1,17 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. +// See the LICENSE file in the project root for more information. + +using System.Runtime.InteropServices; + +internal static partial class Interop +{ + internal static partial class Sys + { + [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetTimestampResolution")] + internal static extern bool GetTimestampResolution(out long resolution); + + [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetTimestamp")] + internal static extern bool GetTimestamp(out long timestamp); + } +} -- 2.7.4