c# - Precision timing in .NET -


I have just seen, where one answer indicates that only production should be used for diagnosis and in the production code No.

In that case, what would be the best way to get accurate time in NET? I am currently in the early stages of the construction of a very simple sequencer using the MIDI-Out functionality. I want to be able to send MIDI messages that are aligned (say) with 1/10 as small as possible. Is it possible, or will my days be ruined like context-switching?

I currently have some code in the console app that constantly calls stopwatch and calculates jitter when generating a stream, 150bpm of this 1/6th notes The panic is very low. However, I'm taking it to the second thread, so I do not know that this will be the case.

If you do not p / invoke, you can use the query presentation:


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -