Skip to content

Latest commit

 

History

History
9 lines (4 loc) · 592 Bytes

File metadata and controls

9 lines (4 loc) · 592 Bytes

C-Sharp-Microtimer

Code for a C# Microtimer for high speed events using the .NET Stopwatch and BackgroundWorker.

See the online article High Speed Regular Events in C Sharp.

This C# solution is a demo of executing code at regular intervals at high speed. Faster than using a WinForms Timer class. The demo is a dice simulator. On a Windows PC with a i7-4770 3.4 Ghz processor the dice simulator was performing 98,000 dice rolls per second, thus close to a 10 microsecond regular event.