---
name: "getnstimeofday"
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/getnstimeofday"
---

# getnstimeofday(9)

Returns the time of day in a timespec

## NAME

getnstimeofday - Returns the time of day in a timespec

## SYNOPSIS

**void getnstimeofday(struct timespec \*** *ts***);**

## ARGUMENTS

*ts*

pointer to the timespec to be set

## DESCRIPTION

Returns the time of day in a timespec.

## COPYRIGHT
