| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Towers of Hanoi {ansi} |
George White,
In a message on 22 June, to Frank Adam, wrote :
GW> I doubt it :-(. Certainly Borland in BC 3.1 define clock() as returning
GW> ticks since the program start, Watcom is the same. It's a program
GW> execution timer, and theoretically measures program CPU usage, so I
GW> suspect it has it's heritage in the code to measure CPU usage in
GW> multiuser systems to charge users (Cs *NIX heritage showing through...).
GW> So unless the program is run continuously for more than 30 days it won't
GW> work.
You're right.
NAME
clock - Determine processor time
SYNOPSIS
#include
clock_t clock(void);
DESCRIPTION
The clock() function returns an approximation of processor
time used by the program.
RETURN VALUE
The value returned is the CPU time used so far as a
clock_t; to get the number of seconds used, divide by
CLOCKS_PER_SEC.
CONFORMING TO
ANSI C
...
--- Renegade v10-05 Exp
* Origin: The Hairless Girls' BBS Mt Eden Auckland NZ (3:772/500)SEEN-BY: 396/1 622/419 632/371 633/260 267 270 371 634/397 635/506 728 SEEN-BY: 670/213 218 @PATH: 772/500 1 270/101 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.