Commit d8ebdbd 1 parent 41b141e commit d8ebdbd Copy full SHA for d8ebdbd
File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -11,13 +11,21 @@ internal class NativeTimeInternal
11
11
public static extern ulong GetTimestampNs ( ) ;
12
12
#else
13
13
/// <summary> Fallback for unsupported platform </summary>
14
- [ GenerateTestsForBurstCompatibility ]
14
+ #if UNITY_2022_OR_NEWER
15
+ [ GenerateTestsForBurstCompatibility ]
16
+ #else
17
+ [ BurstCompatible ]
18
+ #endif
15
19
public static ulong GetTimestampNs ( ) { return 0 ; }
16
20
#endif
17
21
}
18
22
19
23
/// <summary>A burst compatible Stopwatch. Similar to <see cref="Stopwatch"/>.</summary>
24
+ #if UNITY_2022_OR_NEWER
20
25
[ GenerateTestsForBurstCompatibility ]
26
+ #else
27
+ [ BurstCompatible ]
28
+ #endif
21
29
public struct ValueStopwatch
22
30
{
23
31
public const ulong TicksToNanoseconds = 100 ;
You can’t perform that action at this time.
0 commit comments