What is the equivalent of .NET Java LockSupport.parknanos?

Essentially, I need a way to initiate spikes of submicrosecond streams, like parknanos .

Thread.Sleep seems accurate in milliseconds only.

+4
source share
2 answers

You can use performance timers

http://msdn.microsoft.com/en-us/library/ff650674.aspx

However, using interop may limit this approach.

0
source

Source: https://habr.com/ru/post/1387258/


All Articles