up: programming - C - time relatedprev: programming:c:asctimenext: programming - C - ctime
Programming C
clock() function
What links here?
clock_t clock ( void );
Returns the number of clock ticks elapsed since the program was launched.

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

The initial moment of reference used by clock as the beginning of the program execution may vary between platforms. To calculate the actual processing times of a program, the value returned by clock should be compared to a value returned by an initial call to clock.



Parameters

(none)

Return Value

The number of clock ticks elapsed since the program start. On failure, the function returns a value of -1.

clock_t is a type defined in ctime to some type capable of representing clock tick counts and support arithmetical operations (generally a long integer).

Defined in time.h.
www.cplusplus.com
programming - c - functions - clock()
programming:windows:networking:select based server
programming - target - XCB
programming - C - CLOCKS_PER_SEC
MC6802 - instruction set - complement memory
programming - linux - opendir readdir closedir
programming:DDE:IExplorer DDE Server
Time internal format
programming - DDE - PROGMAN DDE Server
AutoCAD - Dialog Control Language (DCL) - (action_tile key action-expression)
tk:tk_frame
filename:programming - c - functions - clock()
filename:programming%20%2D%20c%20%2D%20functions%20%2D%20clock%28%29
last edit:April 20 2012 01:59:14 (5279 days ago)
ct = 1791040285.000000 = October 03 2026 15:11:25
ft = 1334887154.000000 = April 20 2012 01:59:14
dt = 456153131.000000