void
handle_tick(int unused STG_UNUSED)
{
-#ifdef PROFILING
handleProfTick();
-#endif
if (RtsFlags.ConcFlags.ctxtSwitchTicks > 0) {
ticks_to_ctxt_switch--;
if (ticks_to_ctxt_switch <= 0) {
#endif
}
-int
+void
startTimer(void)
{
-#ifdef PROFILING
initProfTimer();
-#endif
-
- return startTicker(RtsFlags.MiscFlags.tickInterval, handle_tick);
+ if (RtsFlags.MiscFlags.tickInterval != 0) {
+ startTicker(RtsFlags.MiscFlags.tickInterval, handle_tick);
+ }
}
-int
+void
stopTimer(void)
{
- return stopTicker();
+ stopTicker();
}