diff options
author | Tanner Gooding <tagoo@outlook.com> | 2019-03-26 08:48:03 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-03-26 14:09:50 -0700 |
commit | aa072b639fc2eb0e60a8083e4c74426db91341e0 (patch) | |
tree | 2b3644fa95ee2537eeaa34d5e3ae20c69c8dfabd /src | |
parent | 2520798548b0c414f513aaaf708399f8ef5a4f6c (diff) | |
download | coreclr-aa072b639fc2eb0e60a8083e4c74426db91341e0.tar.gz coreclr-aa072b639fc2eb0e60a8083e4c74426db91341e0.tar.bz2 coreclr-aa072b639fc2eb0e60a8083e4c74426db91341e0.zip |
Cleaning up the P/Invoke signatures for QPF and QPC to avoid marshalling and pinning (#36071)
* Cleaning up the P/Invoke signatures for QPF and QPC to avoid marshalling and pinning
* Responding to PR feedback.
* Dropping support for low resolution stopwatch
* Removing BestFitMapping=false
* Removing unneeded unsafe declarations
* Addressing more PR feedback
* Fixing the pal_time header file
* Fixing the Unix P/Invoke signatures for GetTimestamp and GetTimestampResolution to return ulong.
* Fixing GetTimestampResolution to scale the result for HAVE_CLOCK_MONOTONIC
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/System.Private.CoreLib/shared/Interop/Unix/System.Native/Interop.GetTimestamp.cs | 8 |
1 files changed, 4 insertions, 4 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 index e791807daf..b57c0cd175 100644 --- 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 @@ -8,10 +8,10 @@ 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_GetTimestampResolution", ExactSpelling = true)] + internal static extern ulong GetTimestampResolution(); - [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetTimestamp")] - internal static extern bool GetTimestamp(out long timestamp); + [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetTimestamp", ExactSpelling = true)] + internal static extern ulong GetTimestamp(); } } |