fixed display time now, needed pause offsets added in, timing seems to work now for time factors greater AND smaller than 1.0

This commit is contained in:
Stephen Dwyer
2012-06-22 11:04:52 -06:00
committed by Felix Ruess
parent 2de9b81ed1
commit 1fb91b577e
+1
View File
@@ -170,6 +170,7 @@ static gboolean nps_main_periodic(gpointer data __attribute__ ((unused))) {
t2 = time_to_double(&tv_now);
/* add the pause to initial real time */
irt += t2 - t1;
nps_main.real_initial_time += t2 - t1;
/* convert to scaled initial real time */
nps_main.scaled_initial_time = t2 - (t2 - irt)/nps_main.host_time_factor;
pauseSignal = 0;