timeval(3type)

timeval3type

Time in seconds and microseconds

Usage

#include <sys/time.h>

struct timeval { time_t tv_sec; /* Seconds */ suseconds_t tv_usec; /* Microseconds */ };

Library

Standard C library (libc)

Overview

Describes times in seconds and microseconds.

Notes

The following headers also provide this type: <sys/resource.h>, <sys/select.h>, and <utmpx.h>.

Releases

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

  1. 12
  2. 13
  3. Arch

Standards

POSIX.1-2024.

History

SUSv1, POSIX.1-2001.

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