🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.misc
Article #2747

Re: function TIMING in Windows: HELP

#2747
From: Chris Marriott
Date: Tue, 12 Jan 1993 19:35
31 lines
1855 bytes
In article <1993Jan11.135908.11287@doug.cae.wisc.edu> ahrikenc@hprisc-12.cae.wisc.edu writes:

>
>Is there any way I can time an algorithm that is part of a Windows
>application?  For example, Unix allows finding the CPU time spent
>specifically on executing a given set of instructions.
>
>In Windows, I used the gettime function and computed the difference
>of the times at two points, and I get different results at different
>times, for the same points, the same data;  I believe this is due to
>the fact that Windows continuously executes other tasks in the 
>background, which explains the difference in the results.
>
>Please help! 
>
>
>

What you need is a good profiling tool.  This will show you the time
spent in the various parts of the application.  A very good one comes
with Microsoft C++, and I believe you get one with Borland C++, too.

Chris
-- 
--------------------------------------------------------------------------
| Chris Marriott                           | chris@chrism.demon.co.uk    |
| Warrington, UK                           | BIX: cmarriott              |
| (Still awaiting inspiration              | CIX: cmarriott              |
|  for a witty .sig .... )                 | CompuServe: 100113,1140     |
--------------------------------------------------------------------------
 
Technical Details
Message-ID: <726867354snz@chrism.demon.co.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
References: <1993Jan11.135908.11287@doug.cae.wisc.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.misc
From: chris@chrism.demon.co.uk (Chris Marriott)
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!demon!chrism.demon.co.uk!chris
Subject: Re: function TIMING in Windows: HELP 
Distribution: world
References: <1993Jan11.135908.11287@doug.cae.wisc.edu>
Organization: None
Reply-To: chris@chrism.demon.co.uk
X-Mailer: Simple NEWS 1.90 (ka9q DIS 1.19)
Lines: 31
Date: Tue, 12 Jan 1993 19:35:54 +0000
Message-ID: <726867354snz@chrism.demon.co.uk>
Sender: usenet@demon.co.uk