1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-01-23 10:58:12 +00:00

I7000: Adopt internal SCP internal time base.

This commit is contained in:
Richard Cornwell 2020-10-29 22:59:44 -04:00
parent 79c1117f97
commit dfcae604af
2 changed files with 2 additions and 2 deletions

View File

@ -155,7 +155,7 @@ chron_read_buff(UNIT * uptr, int cmd)
uptr->u6 = 0; /* Set to no data */
curtim = time(NULL); /* get time */
curtim = sim_get_time(NULL);/* get time */
tptr = localtime(&curtim); /* decompose */
if (tptr == NULL)
return; /* error? */

View File

@ -1528,7 +1528,7 @@ sim_instr(void)
struct tm *tptr;
temp = 99999;
curtim = time(NULL); /* get time */
curtim = sim_get_time(NULL);/* get time */
tptr = localtime(&curtim); /* decompose */
if (tptr != NULL && tptr->tm_sec != 59) {
/* Convert minutes to 100th hour */