Namespaces
Variants
Views
Actions

clock_t

From cppreference.com
< c‎ | chrono
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

#include <stdio.h>
#include <time.h>
#include <math.h>
 
volatile double sink;
int main (void)
{
  clock_t start = clock();
 
  for(