summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Navara <filip.navara@gmail.com>2019-02-03 02:35:39 +0100
committerJan Kotas <jkotas@microsoft.com>2019-02-02 17:55:23 -0800
commit4dc930ea7b1aa429eb30f2ee0b460d5edf5a244f (patch)
tree422c3e3b6c44f9de463d23105544e5b671786327
parent070b5d7a403e991777ead838975d58e66aec1264 (diff)
downloadcoreclr-4dc930ea7b1aa429eb30f2ee0b460d5edf5a244f.tar.gz
coreclr-4dc930ea7b1aa429eb30f2ee0b460d5edf5a244f.tar.bz2
coreclr-4dc930ea7b1aa429eb30f2ee0b460d5edf5a244f.zip
Move Interop.GetTimestamp.cs to shared CoreLib partition. (#35031)
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
-rw-r--r--src/System.Private.CoreLib/shared/Interop/Unix/System.Native/Interop.GetTimestamp.cs17
1 files changed, 17 insertions, 0 deletions
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 0000000000..e791807daf
--- /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);
+ }
+}