delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/10/25/01:17:06

From: gautam AT interlog DOT com (Gautam N. Lad)
Newsgroups: comp.os.msdos.djgpp
Subject: Calculating Time-lapse (time taken between calculations)
Date: Fri, 24 Oct 97 23:24:56 GMT
Organization: InterLog Internet Services
Lines: 27
Message-ID: <62ra8g$hch$1@news.interlog.com>
NNTP-Posting-Host: ip220-110.cc.interlog.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi,
I want to time how long certain calculations/processes take, but I want the time 
in decimals (eg. .025230 seconds).

I tried the difftime() function, but it doesn't really give me decimals, which I 
want.  Either my program does those calculatinos in the exact amount of time, or 
the difftime() rounds it out.

I have something like this happening (imagine doing it using a stop-watch)

- Start the Stop-Watch
	- Calculate information, and process it
- Stop the Stop-Watch

How do I do this in C?

Oh, I'm using DJGPP and Allegro v2.2.
Bye!

-------------------------------------------------------------
Gautam N. Lad
-------------------------------------------------------------
E-Mail:	gautam AT interlog DOT com
Website:	http://www.interlog.com/~gautam

POV-Ray Software, Gallery, and Links!
-------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019