void Awake() { updateLogger = new DebugDataLogger("update", false); lessFrequentLogger = new DebugDataLogger("lessfrequent", false); audioLogger = new DebugDataLogger("audio", false); counter = new PerformanceCounter(); timeStarted = counter.GetPerformanceCounter(); }
private void FakeSomeWork(DebugDataLogger logger, int milliseconds) { double timeNow = counter.CounterToMillis(timeStarted, counter.GetPerformanceCounter()); logger.LogLine(timeNow + ", 0"); logger.LogLine(timeNow + ", 1"); Thread.Sleep(milliseconds); timeNow = counter.CounterToMillis(timeStarted, counter.GetPerformanceCounter()); logger.LogLine(timeNow + ", 1"); logger.LogLine(timeNow + ", 0"); }