We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5f8d738 commit 18b5cd9Copy full SHA for 18b5cd9
1 file changed
NetCord/NetStandard21Backport/System/Environment.cs
@@ -1,10 +1,15 @@
1
-// ReSharper disable once CheckNamespace
+using System.Runtime.InteropServices;
2
+
3
+// ReSharper disable once CheckNamespace
4
namespace System;
5
6
public static class EnvironmentExtensions
7
{
8
extension(Environment)
9
- public static long TickCount64 => Environment.TickCount;
10
+ public static long TickCount64 => unchecked((long) GetTickCount64());
11
}
12
13
+ [DllImport("kernel32.dll")]
14
+ private static extern ulong GetTickCount64();
15
0 commit comments