Re: Optimizing for speed

New Message Reply About this list Date view Thread view Subject view Author view

Bill Frantz (frantz@netcom.com)
Tue, 17 Feb 1998 22:50:50 -0800


At 3:23 PM -0800 2/17/98, Chuck McManis wrote:
>So I've got some algorithms that I'm trying to squeeze more speed
>out of, and while I'm not quite as fanatical as the DES search
>team I do find myself at a loss for tools. My environment is
>VC++5 on a Win95 platform and what I'd like is something like :
>
> long long t1, t2;
> t1 = snap_time(); /* time in nSecs */
> ... do something ...
> t2 = snap_time();
> printf("This run took %ld nS\n", (long)(t2 - t1));
>
>I've yet to find something in my search through various
>manuals...
>
>--Chuck

Look at the QueryPerformanceCounter function. This will give you time in
machine cycles.

-------------------------------------------------------------------------
Bill Frantz | Market research shows the | Periwinkle -- Consulting
(408)356-8506 | average customer has one | 16345 Englewood Ave.
frantz@netcom.com | teat and one testicle. | Los Gatos, CA 95032, USA


New Message Reply About this list Date view Thread view Subject view Author view

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

The following archive was created by hippie-mail 7.98617-22 on Fri Aug 21 1998 - 17:14:55 ADT