Browse by Tags

All Tags » pInvoke (RSS)

How does Stopwatch work

I’ve been using Stopwatch (and blogged about it ) for some time and it never occurred to me to check how it really works. When using it as a benchmarking tool the fact that perhaps it wasn’t as accurate as can possible be didn’t bother me at all. The question of the accuracy of Stopwatch become relevant in one of my pet projects, I needed a high precision timer and I wanted to know if it was up to the task. Investigating Stopwatch proved to be very easy – using Reflector and I’ve opened System.Diagnostics...
Posted by dhelper | with no comments

How-to Render managed (.NET) form using native DirectX

Microsoft DirectX is a collection of application programming interfaces (APIs) for handling tasks related to multimedia , especially game programming and video, on Microsoft platforms. Although a managed DirectX exist some of the time you need the power of C++ when using it. In the past I used DirectX with C++ for image processing and video both needs a lot of byte operations and pointer arithmetic that I could not do in C# (due to performance considerations) But I wanted to create the application...