thief-mission-viewer/project/code/TMV/Timing.cs

15 lines
324 B
C#
Raw Normal View History

2024-08-26 12:22:29 +00:00
using System;
using System.Diagnostics;
namespace KeepersCompound.TMV;
public static class Timing
{
public static void TimeStage(string stagename, Action action)
{
var watch = Stopwatch.StartNew();
action();
watch.Stop();
Godot.GD.Print($"[{stagename}]: {watch.Elapsed:g}");
}
}