Problems
i copied your class, adding Imports System.Runtime.InteropServicesto the top and i get exceptions:
An unhandled exception of type 'System.InvalidProgramException' occurred in xfengine.dll
Additional information: Error: PInvoke item (field,method) must be Static.
The program '[1588] XF2.exe' has exited with code 0 (0x0).
xfengine.dll is my class library containing the high resolution timer and XF2.exe is the console app using xfengine.dll
any help much appreciated
Stephen