1
0
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:
Mark Pizzolato
2017-01-19 15:25:08 -08:00
parent 57d14e5b4a
commit 1bb42b83ef
5 changed files with 158 additions and 51 deletions

2
scp.c
View File

@@ -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));
}