diff options
author | Simon Marlow <simonmar@microsoft.com> | 2007-07-08 19:44:23 +0000 |
---|---|---|
committer | Simon Marlow <simonmar@microsoft.com> | 2007-07-08 19:44:23 +0000 |
commit | f5605a5a2ea4a4707c9bec48048d730f0f56dae2 (patch) | |
tree | 04f8bba097c31a3838716d4ec289f78bb0b39286 /rts/Timer.c | |
parent | 08f3834baf68671f1b9e61def2e4d5511fbe2c8d (diff) | |
download | haskell-f5605a5a2ea4a4707c9bec48048d730f0f56dae2.tar.gz |
Fix the +RTS -V0 option introduced recently; it didn't work at all, now it does.
Also, I documented it. +RTS -V0 disables the internal RTS timer
completely, which is useful for repeatable debugginng.
Diffstat (limited to 'rts/Timer.c')
-rw-r--r-- | rts/Timer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/rts/Timer.c b/rts/Timer.c index 0e0b5386b7..586991a4db 100644 --- a/rts/Timer.c +++ b/rts/Timer.c @@ -93,5 +93,7 @@ startTimer(void) void stopTimer(void) { - stopTicker(); + if (RtsFlags.MiscFlags.tickInterval != 0) { + stopTicker(); + } } |