---
name: "ktime_get_ts"
section: "9"
platform: "linux"
package: "linux-manual-2.6.26"
version: "2.6.26-29"
release: "Debian 5.0 (Lenny)"
platforms: ["linux"]
url: "https://new.carta.tech/ktime_get_ts"
---

# ktime\_get\_ts(9)

get the monotonic clock in timespec format

## NAME

ktime\_get\_ts - get the monotonic clock in timespec format

## SYNOPSIS

**void ktime\_get\_ts(struct timespec \*** *ts***);**

## ARGUMENTS

*ts*

pointer to timespec variable

## DESCRIPTION

The function calculates the monotonic clock from the realtime clock and the wall\_to\_monotonic offset and stores the result in normalized timespec format in the variable pointed to by *ts*.

## COPYRIGHT
