From 4dc930ea7b1aa429eb30f2ee0b460d5edf5a244f 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. (#35031) Signed-off-by: dotnet-bot --- .../Interop/Unix/System.Native/Interop.GetTimestamp.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/System.Private.CoreLib/shared/Interop/Unix/System.Native/Interop.GetTimestamp.cs diff --git a/src/System.Private.CoreLib/shared/Interop/Unix/System.Native/Interop.GetTimestamp.cs b/src/System.Private.CoreLib/shared/Interop/Unix/System.Native/Interop.GetTimestamp.cs new file mode 100644 index 0000000..e791807 --- /dev/null +++ b/src/System.Private.CoreLib/shared/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