From: Filip Navara Date: Sun, 3 Feb 2019 01:35:39 +0000 (+0100) Subject: Move Interop.GetTimestamp.cs to shared CoreLib partition. (dotnet/coreclr#35031) X-Git-Tag: submit/tizen/20210909.063632~11030^2~2611 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5eeef9bee3aec49aae700c5ed7d6bb18fefb004d;p=platform%2Fupstream%2Fdotnet%2Fruntime.git 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 --- 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); + } +}