Delphi32.com - Home!
| Home/News | Downloads | Forums | D32 Magazine | Resources | Info and Facts |  
 
 Components: Date & Time: Clocks


Name: RDTSC unit 1.1 Date: 7/24/01 11:00:00 PM
Environment:
Delphi 4.0, Delphi 6.0, Windows 95, Windows NT, Delphi 3.0, Delphi 5.0, Windows 2000, Windows 98, Windows NT 4.0
Download
Type: Freeware with Source Size: 3KB
Price: $0
Source:
Online Registration: Link Not Available
Description:
It is a wrapper under RDTSC pentium instruction. With this unit you can measure time intervals with up to nanoseconds resolution.

It is very easy to use. Just include it in unit clause. And when you need to measure time, do:
// **************  example begin  **************
var ticks:int64;
...
ticks := cpuGetTick; // remember counter 
dosomething;  // do some work
label1.caption := format(' "dosomething" time = %d ms',[cpugetms(ticks)]);
// **************  example end  **************

Thats all. 

Functions partial list:

function cpuGetSpeed:word;
function cpuGetTick:int64;
function cpuGetms( Tick:int64 ):dword;
function cpuGetmks( Tick:int64 ):dword;
...


Additional Information: 
  • Total downloads between 7/25/01 and 12/2/08: 2571
Author: Zloba Alexandr No Homepage Specified
  
Components: Date & Time: Clocks <<  Browse  >> Freeware with Source



 
 Hits/month  2,500,000+ 
 Downloads
 (Since May 2000)
 7,393,709 
 Total Files  6,023 
 Forum msgs  7,670 
 Articles/FAQs  70+/900+ 
Kylix
Tips n Tricks
FAQs
Knowledge Base
Bug Listings
Articles
Books
Newsgroups
Links
Submissions
Testimonials
Advertising
Contact Us
About Us
Search Amazon:
Top Selling Software at Amazon

| Home/News | Downloads | Forums | Resources | Info and Facts | Testimonials |
  Site Search:
 


Comments/Problems: Webmaster@delphi32.com
Copyright © 1998-2006, Delphi32.com. All rights reserved.
Terms of Use