Archive for January, 2013

High Precision Timer in .NET/C#

Here’s a high-precision timer I wrote. I get roughly <1ms avg precision on 25ms interval. But if Windows is busy it may come in late. It’s fairly lean on CPU utilization. Feel free to use. It uses Sleep(1) when the next tick is more than 15ms away and then SpinUntil (which yields as needed) to keep CPU usage at bay. Uses .NET4 features.

, , , , , ,

Leave a comment

Something for next science fair project

http://www.dataq.com/products/startkit/di145.html
4 channel USB data logger. They are even giving away free loggers for 4th graders and up.

Leave a comment