Sub TakeTime(tag As String, isFirstReference As Boolean)
Dim Now As Long = DateTime.Now
If isFirstReference Then Log($"Stablishing initial reference time at '${tag}'"$)
Wait For TakeTime(newTag As String, isFirst As Boolean) 'Waits for itself, pls don't do it in real life
If Not(isFirst) Then
Now = DateTime.Now - Now
Dim CurrTimeFormat As String = DateTime.TimeFormat
DateTime.TimeFormat = "mm:ss:SSS"
Log($"Elapsed time between '${tag}' and '${newTag}': ${DateTime.Time(Now)} "$)
DateTime.TimeFormat = CurrTimeFormat
End If
TakeTime(newTag, isFirst)
End Sub
Sub MeasureElapsedTimeSinceLastCall(tag As String, isFirstReference As Boolean)
CallSub3(Me, "TakeTime", tag, isFirstReference)
End Sub