1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

SCP: Avoid runaway recursion when debugging timer logic

As mentioned in #1107
This commit is contained in:
Mark Pizzolato
2022-07-17 13:14:09 -10:00
parent bc98e1c609
commit 7249d55f11
3 changed files with 7 additions and 1 deletions

View File

@@ -2200,6 +2200,11 @@ t_stat sim_timer_stop_svc (UNIT *uptr)
return SCPE_STOP;
}
void sim_rtcn_debug_time (struct timespec *now)
{
clock_gettime (CLOCK_REALTIME, now);
}
void sim_rtcn_get_time (struct timespec *now, int tmr)
{
sim_debug (DBG_GET, &sim_timer_dev, "sim_rtcn_get_time(tmr=%d)\n", tmr);