delorie.com/archives/browse.cgi | search |
Xref: | news-dnh.mv.net comp.os.msdos.djgpp:2625 |
Newsgroups: | comp.os.msdos.djgpp |
Path: | news-dnh.mv.net!mv!news.sprintlink.net!newsfeed.internetmci.com!EU.net!sun4nl!phcoms4.seri.philips.nl!newssvr!kunst |
From: | kunst AT natlab DOT research DOT philips DOT com (Pieter Kunst) |
Subject: | Re: clock() unit ? |
Sender: | news AT natlab DOT research DOT philips DOT com (USENET News System) |
Organization: | Philips Research Laboratories, Eindhoven, The Netherlands |
References: | <45iniu$6c5 AT news DOT cea DOT fr> <19951012170909 DOT olly AT mantis DOT co DOT uk> |
Date: | Fri, 13 Oct 1995 12:46:09 GMT |
Lines: | 16 |
To: | djgpp AT sun DOT soe DOT clarkson DOT edu |
Dj-Gateway: | from newsgroup comp.os.msdos.djgpp |
In article <19951012170909 DOT olly AT mantis DOT co DOT uk> olly AT mantis DOT co DOT uk (Olly Betts) writes: > >In DJGPP v1.12m4, time.h says: #define CLOCKS_PER_SEC 1000000 >and limits.h says: #define CLK_TCK 100 > >I *think* that CLOCKS_PER_SEC is an old alternative name for CLK_TCK, so they >should be the same if both are defined. I may be wrong though. No, CLOCKS_PER_SEC is an ANSI C constant, from <time.h> (See K&R, 2nd, p.255). clock()/CLOCKS_PER_SEC returns the processor time used by the program, in seconds, since the beginning of execution. CLK_TCK is PC only. You'd better avoid using it. Pieter Kunst (kunst AT natlab DOT research DOT philips DOT com)
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |