clock_t
From cppreference.com
Defined in header <time.h>
|
||
typedef /* unspecified */ clock_t; |
||
Arithmetic(until C11)Real(since C11) type capable of representing the processor time used by a process. It has implementation-defined range and precision.
[edit] Example
Run this code
#include <stdio.h> #include <time.h> #include <math.h> volatile double sink; int main (void) { clock_t start = clock(); for(