private void OnStatus(StatusInfo status) { txtIdlePerc.text = status.idlePerc.ToString(); txtUpdatePerc.text = status.updatePerc.ToString(); txtNowChecksum.text = status.now.ToString(); txtPeriodicChecksum.text = status.periodic.ToString(); }
public StatusInfo GetStatus(Stopwatch updateWatch) { var status = new StatusInfo(); status.idlePerc = (float)idleWatch.ElapsedMilliseconds / (float)updateWatch.ElapsedMilliseconds; status.updatePerc = (float)frameWatch.ElapsedMilliseconds / (float)updateWatch.ElapsedMilliseconds; status.periodic = GameInfo.periodic; status.now = GameInfo.now; return(status); }