Smart Device Functions:
Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than kernel32, prefix the name with the module name and a period.
Gets the number of milliseconds elapsed since the system started.
Tips & Tricks:
// C# sample for a simple timer to pause before some other code.
Alternative Managed API:
Do you know one? Please contribute it!
Note, the managed API is subtly different than the Win32 API call. The Win32 API call returns an unsigned int while the managed API returned a signed int. Also note that the MSDN documentation for System.Environment.TickCount() is not correct. This managed API rolls over to int.MinValue and not to 0 after 24.9 days.
UPDATE, The MSDN documentation has been updated to correctly state the int.MinValue 24.9 day rollover. The new documentation also provides an example of how to correctly return a positive value from the method. http://msdn2.microsoft.com/en-us/library/system.environment.tickcount.aspx
TIP: If you need to measure time intervals for longer then 24.9 days you better use:
System.Diagnostics.StopWatch sw = new System.Diagnostics.StopWatch();
long ms = sw.ElapsedMilliseconds;
The GetTickCount API
5/22/2011 5:53:28 PM - -126.96.36.199
Please edit this page!
Do you have...