clock()

return processor time used 

Function


SYNOPSIS

#include <time.h>

clock_t clock(void);


DESCRIPTION

The clock() function returns the implementation's best approximation to the processor time used by the process since the beginning of an implementation-dependent time related only to the process invocation. To determine the time in seconds, the value returned by clock() should be divided by the value of CLOCKS_PER_SEC.


PARAMETERS

None.


RETURN VALUES

The processor time used or -1 if unknown.


CONFORMANCE

ANSI/ISO 9899-1990.


MULTITHREAD SAFETY LEVEL

MT-Safe.


PORTING ISSUES

None.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
asctime(), ctime(), difftime(), ftime(), gettimeofday(), gmtime(), localtime(), mktime(), setlocale(), strftime(), time(), times(), tzset(), wait()


PTC MKS Toolkit 10.4 Documentation Build 39.