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()
embedded systems - arduino
AutoCAD LISP - TBLOBJNAME
programming:microchip pics:pic assembly language:labels
linux software - CAD
Raspberry PI - add a user
MC6802 - instruction set - Subtract Accumulators
file formats - PDF - color space
bible - random notes - 2010-05-01 - John 4:24 - worship
programming:microchip pics:pic_labx_20_leds
bible - random notes - 2011-01-22 the gospel
programming - java - applet
programming:c:functions:_splitpath
AutoCAD LISP - GETSTRING
microprocessors - microchip 16F84A - MCLR
bible - random notes - 2013-06-02 Hannah's prayer
AutoCAD Entity Definitions - line
bible - random notes - 2012-09-16 'end times'
filename:programming - c - functions - clock()
filename:programming%20%2D%20c%20%2D%20functions%20%2D%20clock%28%29
last edit:April 19 2012 21:59:14 (4412 days ago)
ct = 1716097823.000000 = May 19 2024 01:50:23
ft = 1334887154.000000 = April 19 2012 21:59:14
dt = 381210669.000000