LabWindows/CVI

Content Type
Programming Language
Current manual

clock

clock

clock_t clock (void);

Purpose

Returns the number of system clock cycles that have occurred since the program started executing. The number of clock ticks can include time used by other processes. To convert the number of clock cycles to seconds, divide by CLOCKS_PER_SEC to obtain an approximation to the nearest millisecond.

Parameters

None.

Return Value

Name Type Description
timeUsed clock_t Contains the number of system clock cycles that have occurred since the program started executing. The number of clock ticks can include time used by other processes. To convert the number of clock cycles to seconds, divide by CLOCKS_PER_SEC to obtain an approximation to the nearest millisecond.

Additional Information

Library: ANSI C Library

Include file: ansi_c.h

LabWindows/CVI compatibility: LabWindows/CVI 3.0 and later

Was this information helpful?

Previous

time

Previous

time