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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -