ftp.nice.ch/peanuts/GeneralData/Usenet/news/1991/CSNProg-91.tar.gz#/comp-sys-next-programmer/1991/Aug/tick_count?

This is tick_count? in view mode; [Up]


Date: Sun 20-Aug-1991 07:46:46 From: mldemsey@cs.arizona.edu (Matthew L. Demsey) Subject: tick_count()? Is there such a thing as tick_count() available and if so, why won't my compiler recognize it during compilation. I've resorted to using kern_timestamp(struct tsval *) to accomplish the elapsed time of a function call in my code. Any hints/helpers are much welcomed. Thanks. Loki (mldemsey@caslon.cs.arizona.edu)
Date: Sun 20-Aug-1991 09:15:37 From: melling@cs.psu.edu (Michael D Mellinger) Subject: Re: tick_count()? In article <1775@caslon.cs.arizona.edu> mldemsey@cs.arizona.edu (Matthew L. Demsey) writes: Is there such a thing as tick_count() available and if so, why won't my compiler recognize it during compilation. I've resorted to using kern_timestamp(struct tsval *) to accomplish the elapsed time of a function call in my code. Any hints/helpers are much welcomed. Have you tried using gprof(1), NeXT's profiler? How accurate do you want to be? I think getrusage can give you pretty accurate timings. The cache can vary things a little. -Mike
Date: Sun 20-Aug-1991 18:15:15 From: kari@finn (Kari Karhi) Subject: Re: tick_count()? In article <1775@caslon.cs.arizona.edu> mldemsey@cs.arizona.edu (Matthew L. Demsey) writes: > > Is there such a thing as tick_count() available and if so, why won't > my compiler recognize it during compilation. I've resorted to using > kern_timestamp(struct tsval *) to accomplish the elapsed time of a > function call in my code. Any hints/helpers are much welcomed. > > Thanks. Loki (mldemsey@caslon.cs.arizona.edu) Look in the Digital Librarian Notes/MakingAppsFly. It has a Timing class that I used with good results (search for timing in DL NextDev and skip to the end of the list). The source to the Timing class is included so it should help you do your own timing code even if you decide not to use the Timing class. Kari Karhi Pencom Software (512)343-1111

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Marcel Waldvogel and Netfuture.ch.