c# - how to measure time in Windows Store apps -
i'm making windows store app (c#) communicate through bluetooth device, , i'm looking way measure how long process done.
i've seen same question : where timer in windows store app? , timer while in case need time measurer (like millis() in arduino)
does know how this?
you can use stopwatch - stopwatch uses highpresission timer if available, othwise datetime.utcnow used
var watch = stopwatch.startnew(); performwork(); watch.stop(); timespan elapsedtime = watch.elapsed;
Comments
Post a Comment