[linux] Talk
Dado Jan
dado na slovkaufring.sk
Čtvrtek Září 30 08:34:53 CEST 1999
> A este zasadna otazka: Preco mi v C nefunguje funkcia clock(),
> vzdy ked ju pouzijem na zmeranie casu behu programu tak ukaze to iste
> cislo. V DOS mi to frci.
Mozno to nerobis spravne... co takto man 3 clock
Na konci je uvedene:
The C standard allows for arbitrary values at the start of
the program; take the difference between the value
returned from a call to clock() at the start of the pro-
gram and the end to get maximum portability.
The times() function call returns more information.
^^^^^^^^^
Skus toto, ked to ma byt lepsie :)
A skontroluj si typ clock_t, nech vies co vypisujes :)
Jano
Další informace o konferenci linux