Aetheria/Assets/Plugins/MSAGL/Routing/Spline/Bundling/TimeMeasurer.cs
Reinier Vens dbc522a224 Weapos Rejiggered
Modified weapon scripts to eliminate specialized projectile behavior - allows charged weapons to have projectiles and modify weapon stats when charged
Added machine gun weapon & VFX
Moved third party code to Plugins folder to improve compile times
2021-01-31 03:52:32 +00:00

27 lines
688 B
C#

using System;
using Microsoft.Msagl.DebugHelpers;
namespace Microsoft.Msagl.Routing.Spline.Bundling {
/// <summary>
/// Outputs run time in debug mode
/// </summary>
internal class TimeMeasurer {
#if DEBUG && TEST_MSAGL
static DebugHelpers.Timer timer;
static TimeMeasurer() {
timer = new DebugHelpers.Timer();
timer.Start();
}
#endif
internal delegate void Task();
internal static void DebugOutput(string str) {
#if DEBUG && TEST_MSAGL
timer.Stop();
Console.Write("{0}: ", String.Format("{0:0.000}", timer.Duration));
Console.WriteLine(str);
#endif
}
}
}