need help with clock(); function

Started by
2 comments, last by Zerosignull 23 years, 11 months ago
when i set a variable to clock() eg timer1 = clock(); what time is the variable been set to? (1 sec, 100th of a sec etc) please help as i got a fuction that incorparoates this type of code and works fine, but i would like to know what its doing ~prevail by daring to fail~
Advertisement
Look it up in the help DOCs.

=======================================
A man with no head is still a man.
A head with no man is plain freaky.
quote:Original post by Zerosignull
what time is the variable been set to? ...



Taken from the Borland Help files:

clock returns the processor time elapsed since the beginning of the program invocation.



Andrew
to add to acraig''s post, the unit of time returned by clock() is determined, at least in MSVC, by the constant called CLOCKS_PER_SEC.



--
Float like a butterfly, bite like a crocodile.

--Float like a butterfly, bite like a crocodile.

This topic is closed to new replies.

Advertisement