Move Interop.GetTimestamp.cs to shared CoreLib partition. (dotnet/coreclr#35031)
authorFilip Navara <filip.navara@gmail.com>
Sun, 3 Feb 2019 01:35:39 +0000 (02:35 +0100)
committerJan Kotas <jkotas@microsoft.com>
Sun, 3 Feb 2019 01:55:23 +0000 (17:55 -0800)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/4dc930ea7b1aa429eb30f2ee0b460d5edf5a244f

src/libraries/System.Private.CoreLib/src/Interop/Unix/System.Native/Interop.GetTimestamp.cs [new file with mode: 0644]

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 (file)
index 0000000..e791807
--- /dev/null
@@ -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);
+    }
+}