Added nanosecond-accuracy time debug

This commit is contained in:
skyeshroom 2021-08-11 11:47:06 -07:00
parent d748a8fe2d
commit 38a9f8f2c7

View File

@ -7,7 +7,7 @@ use std::time::{Duration, Instant};
// if REALTIME is false, the simulation runs as fast as possible and doesn't run the display function // if REALTIME is false, the simulation runs as fast as possible and doesn't run the display function
const UPDATE_INTERVAL: u32 = 40; const UPDATE_INTERVAL: u32 = 40;
const TIMESCALE: f32 = 1.0; const TIMESCALE: f32 = 1.0;
const REALTIME: bool = false; const REALTIME: bool = true;
// debug constants // debug constants
const DEBUG_LOOP: bool = false; const DEBUG_LOOP: bool = false;