clock_t(3type)

clock_t3type

System time

Usage

#include <time.h>

typedef /* ... */ clock_t;

Library

Standard C library (libc)

Overview

Used for system time in clock ticks or CLOCKS_PER_SEC (defined in <time.h>). According to POSIX, it is an integer type or a real-floating type.

Notes

The following headers also provide this type: <sys/types.h> and <sys/times.h>.

Releases

3 releases since Debian 12 (Bookworm); the text changed 2 times.

  1. 12
  2. 13
  3. Arch

Standards

C11, POSIX.1-2024.

History

C89, POSIX.1-1988.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.