summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rts/Stats.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rts/Stats.c b/rts/Stats.c
index 0c22f7e42b..ed6695ad45 100644
--- a/rts/Stats.c
+++ b/rts/Stats.c
@@ -298,7 +298,7 @@ stat_startNonmovingGc ()
{
ACQUIRE_LOCK(&stats_mutex);
start_nonmoving_gc_cpu = getCurrentThreadCPUTime();
- start_nonmoving_gc_elapsed = getProcessCPUTime();
+ start_nonmoving_gc_elapsed = getProcessElapsedTime();
RELEASE_LOCK(&stats_mutex);
}
@@ -306,7 +306,7 @@ void
stat_endNonmovingGc ()
{
Time cpu = getCurrentThreadCPUTime();
- Time elapsed = getProcessCPUTime();
+ Time elapsed = getProcessElapsedTime();
ACQUIRE_LOCK(&stats_mutex);
stats.gc.nonmoving_gc_elapsed_ns = elapsed - start_nonmoving_gc_elapsed;