Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ 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);

[DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_GetAbsoluteTime")]
internal static extern bool GetAbsoluteTime(out ulong timestamp);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,8 @@
<Compile Include="$(CommonPath)\System\StringExtensions.cs">
<Link>Common\System\StringExtensions.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\Interop\Unix\System.Native\Interop.GetTimestamp.cs">
<Link>Common\Unix\System.Native\Interop.GetTimestamp.cs</Link>
<Compile Include="$(CommonPath)\Interop\Unix\System.Native\Interop.GetAbsoluteTime.cs">
<Link>Common\Unix\System.Native\Interop.GetAbsoluteTime.cs</Link>
</Compile>
</ItemGroup>
<ItemGroup Condition="'$(TargetGroup)' == 'netcoreapp' AND '$(TargetsWindows)' == 'true'">
Expand Down Expand Up @@ -412,9 +412,6 @@
<Compile Include="$(CommonPath)\Interop\FreeBSD\Interop.Process.cs">
<Link>Common\Interop\FreeBSD\Interop.Process.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\Interop\Unix\System.Native\Interop.GetTimestamp.cs">
<Link>Common\Unix\System.Native\Interop.GetTimestamp.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\CoreLib\Interop\Unix\System.Native\Interop.Stat.cs">
<Link>Common\Unix\System.Native\Interop.Stat.cs</Link>
</Compile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
<Compile Include="$(CommonPath)\CoreLib\Interop\Unix\System.Native\Interop.GetHostName.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetHostName.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\Interop\Unix\System.Native\Interop.GetTimestamp.cs">
<Compile Include="$(CommonPath)\CoreLib\Interop\Unix\System.Native\Interop.GetTimestamp.cs">
<Link>Common\Interop\Unix\System.Native\Interop.GetTimestamp.cs</Link>
</Compile>
<Compile Include="$(CommonPath)\CoreLib\Interop\Unix\System.Native\Interop.GetPwUid.cs">
Expand Down