---
name: "do_gettimeofday"
section: "9"
platform: "linux"
package: "linux-manual-2.6.18"
version: "2.6.18.dfsg.1-26etch2"
release: "Debian 4.0 (Etch)"
platforms: ["linux"]
url: "https://new.carta.tech/do_gettimeofday"
---

# do\_gettimeofday(9)

Returns the time of day in a timeval

## NAME

do\_gettimeofday - Returns the time of day in a timeval

## SYNOPSIS

**void do\_gettimeofday(struct timeval \*** *tv***);**

## ARGUMENTS

*tv*

pointer to the timeval to be set

## NOTE

Users should be converted to using **get\_realtime\_clock\_ts**

## COPYRIGHT
