| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Timing Algorithms. |
Hi Kirby!
[..]
KT> I am currently taking an algorithm analysis course were we must
KT> time different implementations.
For really exact timing, you should have a look at:
int InfoTimer (void)
{
QWORD qwTime;
APIRET rc;
ULONG ulFreq;
rc = DosTmrQueryFreq (&ulFreq);
if (rc != NO_ERROR)
{
printf("\nDosTmrQueryFreq failed: %u", rc);
return (rc);
}
if ((rc = DosTmrQueryTime(&qwTime)) != NO_ERROR)
{
printf("DosTmrQueryTime failed: %u\n", rc);
return (rc);
}
...
You get access to the internal 64-Bit timer with a resolution of 839ns.
__
|_)
cu/2 |atrick
[Team OS/2]
---
* Origin: OS/2 Bodensee ! (2:246/2315.18)SEEN-BY: 270/101 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407 SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809 @PATH: 246/2315 2300 2340 24/901 240/5500 24/24 396/1 270/101 712/515 @PATH: 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.