Skip to content

Commit d6c99a5

Browse files
authored
Merge pull request #1061 from Unity-Technologies/high-precision-timers
Use bdwgc nanosecond time limits
2 parents ba4c794 + 2be806a commit d6c99a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mono/metadata/boehm-gc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ int64_t
430430
mono_gc_get_max_time_slice_ns()
431431
{
432432
#if HAVE_BDWGC_GC
433-
return GC_get_time_limit() * 1000000;
433+
return GC_get_time_limit_ns();
434434
#else
435435
return 0;
436436
#endif
@@ -440,7 +440,7 @@ void
440440
mono_gc_set_max_time_slice_ns(int64_t maxTimeSlice)
441441
{
442442
#if HAVE_BDWGC_GC
443-
GC_set_time_limit(maxTimeSlice / 1000000);
443+
GC_set_time_limit_ns(maxTimeSlice);
444444
#endif
445445
}
446446

0 commit comments

Comments
 (0)