1
0
mirror of https://github.com/rcornwell/sims.git synced 2026-05-02 22:24:22 +00:00

SCP: Updated to current.

This commit is contained in:
Richard Cornwell
2020-03-22 15:11:09 -04:00
parent 02fdb12af9
commit cbfaa373a4
7 changed files with 136 additions and 38 deletions

View File

@@ -3467,3 +3467,11 @@ for (tmr=0; tmr<=SIM_NTIMERS; tmr++) {
sim_inst_per_sec_last = sim_precalibrate_ips;
sim_idle_stable = 0;
}
double
sim_host_speed_factor (void)
{
if (sim_precalibrate_ips > SIM_INITIAL_IPS)
return 1.0;
return (double)SIM_INITIAL_IPS / (double)sim_precalibrate_ips;
}