---
name: "timeval"
section: "3type"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/timeval/3type"
---

# timeval(3type)

time in seconds and microseconds

## NAME

timeval - time in seconds and microseconds

## LIBRARY

Standard C library (*libc*)

## SYNOPSIS

```
#include <sys/time.h>
```

**struct timeval {**     **time\_t       tv\_sec;**   /\* Seconds \*/     **suseconds\_t  tv\_usec;**  /\* Microseconds \*/ **};**

## DESCRIPTION

Describes times in seconds and microseconds.

## STANDARDS

POSIX.1-2024.

## HISTORY

SUSv1, POSIX.1-2001.

## NOTES

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

## SEE ALSO

[**gettimeofday**(2)](/gettimeofday/2.md), [**select**(2)](/select/2.md), [**utimes**(2)](/utimes/2.md), [**adjtime**(3)](/adjtime/3.md), [**futimes**(3)](/futimes/3.md), [**timeradd**(3)](/timeradd/3.md), [**suseconds\_t**(3type)](/suseconds_t/3type.md), [**time\_t**(3type)](/time_t/3type.md), [**timespec**(3type)](/timespec/3type.md)
