c# - Microseconds delay -
this question has answer here:
- thread.sleep less 1 millisecond 5 answers
i need delay piece of code processing time in microseconds. tried lots of things such thread.sleep(x), has milliseconds resolution.
i using .net 2.0 in ms visual studio 2013.
system.diagnostics.stopwatch
allows small (few nanosecond) ticks, can convert microseconds using this. can let empty while
loop long need.
edit: , supported .net 2.0.
Comments
Post a Comment