delorie.com/archives/browse.cgi | search |
Date: | Sat, 25 Oct 1997 01:33:30 -0400 (EDT) |
Message-Id: | <199710250533.BAA26603@delorie.com> |
From: | DJ Delorie <dj AT delorie DOT com> |
To: | eldredge AT ap DOT net |
CC: | flux AT IAEhv DOT nl, djgpp AT delorie DOT com |
In-reply-to: | <199710250511.WAA07636@adit.ap.net> (message from Nate Eldredge |
on Fri, 24 Oct 1997 22:11:53 -0700 (PDT)) | |
Subject: | Re: 3 silly questions ... |
> >1. CLK_TCK doesn't seem to be defined (although it's ANSI) > > bug ? > > CLK_TCK *is* defined in time.h, but is enclosed in `#ifndef > __STRICT_ANSI__', which IIRC `gcc -ansi' defines. So if CLK_TCK really is > ANSI, then maybe this is a bug. CLK_TCK is not ANSI. It is POSIX, and it is obsolescent. You're supposed to use sysconf(_SC_CLK_TCK) instead. ANSI defines CLOCKS_PER_SEC for the resolution of clock() values.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |