home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!netnews!bandy
- From: bandy@netnews.jhuapl.edu (Mike Bandy)
- Subject: Re: time functions
- Message-ID: <BxByCu.G5E@netnews.jhuapl.edu>
- Organization: JHU/Applied Physics Laboratory
- References: <1992Oct26.095347@axion.bt.co.uk>
- Date: Sat, 7 Nov 1992 05:10:06 GMT
- Lines: 21
-
- pkeddie@axion.bt.co.uk (Paul Keddie) writes:
-
-
- >I'm trying to measure whether a rewritten function is more time
- >efficient then the original. I have tried the functions defined
- >in time.h but they only seem to measure time to the nearest
- >second, which is far too big a unit of time for my purposes.
- >(What should clock() return? it only seems to return 0 for me.)
-
- >Is it possible to measure time more accurately than in seconds?
- >The samller the unit of time the better!
-
- You've forgotten to mention what operating system you're using.
- If you can't tell if one of the new is faster than one of the old
- then how about 100 or 1,000?
-
- --
-
- Mike Bandy
- bandy@aplcomm.jhuapl.edu
- Johns Hopkins University / Applied Physics Lab
-