1
0
mirror of https://github.com/simh/simh.git synced 2026-02-14 11:55:51 +00:00

SCP: Migrate to use SCP internal timer base reference

This commit is contained in:
Mark Pizzolato
2020-10-29 13:06:36 -07:00
parent a41f081e81
commit 9c1f4beae3
2 changed files with 5 additions and 5 deletions

View File

@@ -2315,7 +2315,7 @@ if (sim_deb_switches & SWMASK ('R')) {
struct tm loc_tm, gmt_tm;
time_t time_t_now;
clock_gettime(CLOCK_REALTIME, &sim_deb_basetime);
sim_rtcn_get_time(&sim_deb_basetime, 0);
time_t_now = (time_t)sim_deb_basetime.tv_sec;
/* Adjust the relative timebase to reflect the localtime GMT offset */
loc_tm = *localtime (&time_t_now);