RE: Optimizing for speed

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

Trei, Peter (ptrei@securitydynamics.com)
Wed, 18 Feb 1998 10:13:09 -0500


Try looking at the clock() function, which returns the number of
clock ticks the process has used since it's start. You can
convert this to real time by dividing by the constant
CLOCKS_PER_SEC.

Peter Trei
ptrei@securitydynamics.com

> -----Original Message-----
> From: Chuck McManis [SMTP:cmcmanis@freegate.com]
> Sent: Tuesday, February 17, 1998 6:23 PM
> To: CodherPlunks@toad.com
> Subject: Optimizing for speed
>
> 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


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