We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 41b141e + d8ebdbd commit b1a98faCopy full SHA for b1a98fa
Runtime/NativeTime.cs
@@ -11,13 +11,21 @@ internal class NativeTimeInternal
11
public static extern ulong GetTimestampNs();
12
#else
13
/// <summary> Fallback for unsupported platform </summary>
14
- [GenerateTestsForBurstCompatibility]
+ #if UNITY_2022_OR_NEWER
15
+ [GenerateTestsForBurstCompatibility]
16
+ #else
17
+ [BurstCompatible]
18
+ #endif
19
public static ulong GetTimestampNs() { return 0; }
20
#endif
21
}
22
23
/// <summary>A burst compatible Stopwatch. Similar to <see cref="Stopwatch"/>.</summary>
24
25
[GenerateTestsForBurstCompatibility]
26
27
28
29
public struct ValueStopwatch
30
{
31
public const ulong TicksToNanoseconds = 100;
0 commit comments