This commit is contained in:
JenneJ
2016-05-18 16:45:19 +02:00
parent fc54eae3ab
commit 7b3db6f990
4 changed files with 64 additions and 13 deletions

View File

@@ -395,4 +395,22 @@
Return Guid.NewGuid().ToString().GetHashCode().ToString("x")
End Function
Public Class SW
Public label As String
Public stopwatch As Stopwatch
Public Sub New(label As String)
Me.label = label
stopwatch = New Stopwatch()
stopwatch.Start()
End Sub
Public Sub Done()
stopwatch.Stop()
Console.WriteLine("{0} took {1} milliseconds to complete", label, stopwatch.ElapsedMilliseconds)
End Sub
End Class
End Module