From c3995ef5574d84244c723725d0af9a84970838c4 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Wed, 6 Jul 2022 20:54:07 -0400 Subject: [PATCH] different timestamping --- source/funkin/LatencyState.hx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/funkin/LatencyState.hx b/source/funkin/LatencyState.hx index b127fb8c6..bb6f52869 100644 --- a/source/funkin/LatencyState.hx +++ b/source/funkin/LatencyState.hx @@ -8,6 +8,7 @@ import flixel.math.FlxMath; import flixel.text.FlxText; import flixel.util.FlxColor; import funkin.audiovis.PolygonSpectogram; +import haxe.Timer; import openfl.events.KeyboardEvent; class LatencyState extends MusicBeatSubstate @@ -29,7 +30,7 @@ class LatencyState extends MusicBeatSubstate { FlxG.stage.addEventListener(KeyboardEvent.KEY_DOWN, key -> { - trace("EVENT PRESS: " + FlxG.sound.music.time + " " + Sys.time()); + trace("EVENT PRESS: " + FlxG.sound.music.time + " " + Timer.stamp()); // trace("EVENT LISTENER: " + key); }); @@ -119,7 +120,7 @@ class LatencyState extends MusicBeatSubstate { if (FlxG.keys.justPressed.S) { - trace("UPDATE PRESS: " + FlxG.sound.music.time + " " + Sys.time()); + trace("UPDATE PRESS: " + FlxG.sound.music.time + " " + Timer.stamp()); } if (FlxG.keys.justPressed.X)