mirror of
https://github.com/simh/simh.git
synced 2026-01-26 04:01:38 +00:00
VAX730, VAX750, VAX780, VAX8600: Make TODR a little more precise
Add consistent debug options to track TODR activities and the values which are set. Debug data will display the VMS time related to the values set and read.
This commit is contained in:
2
scp.c
2
scp.c
@@ -10483,7 +10483,7 @@ if (sim_deb_switches & (SWMASK ('T') | SWMASK ('R') | SWMASK ('A'))) {
|
||||
sim_timespec_diff (&time_now, &time_now, &sim_deb_basetime);
|
||||
if (sim_deb_switches & SWMASK ('T')) {
|
||||
time_t tnow = (time_t)time_now.tv_sec;
|
||||
struct tm *now = gmtime(&tnow);
|
||||
struct tm *now = localtime(&tnow);
|
||||
|
||||
sprintf(tim_t, "%02d:%02d:%02d.%03d ", now->tm_hour, now->tm_min, now->tm_sec, (int)(time_now.tv_nsec/1000000));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user