www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/11/06/06:49:00

To: dj AT ctron DOT com (DJ Delorie)
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: clock() problems
Date: Sun, 06 Nov 94 12:26:28 +0200
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>

ANSI C says the clock() library function should be prototyped on time.h
header file.  In DJGPP 1.12maint2, it isn't.

Also, the macro CLOCKS_PER_SECOND is 1000000, which means clock()
returns its results in microseconds.  But that means that its
value (a signed long) will only be wide enough for programs
which run less than about 40 minutes, right?  Is this wise?

- Raw text -


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