mirror of
https://github.com/n00mkrad/flowframes.git
synced 2025-12-16 08:27:44 +01:00
23 lines
428 B
C#
23 lines
428 B
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
|
|
namespace Flowframes.MiscUtils
|
|
{
|
|
class NmkdStopwatch
|
|
{
|
|
public Stopwatch sw = new Stopwatch();
|
|
|
|
public NmkdStopwatch (bool startOnCreation = true)
|
|
{
|
|
if (startOnCreation)
|
|
sw.Restart();
|
|
}
|
|
|
|
public string GetElapsedStr ()
|
|
{
|
|
return FormatUtils.TimeSw(sw);
|
|
}
|
|
}
|
|
}
|