C Reference Macro CLOCKS_PER_SEC

The macro constant expression CLOCKS_PER_SEC specifies the relation between a clock tick and a second (clock ticks per second).

If you divide a count of clock ticks by this expression you get the number of seconds.

The CLK_TCK is an obsolete alias of this macro.

For a usage example take a look at the clock page.

This entry was posted in C Reference time.h Functions. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site. Tweet This! Tweet This! or use to share this post with others.

Leave a Reply: