---
name: "hrtimer_get_res"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/hrtimer_get_res"
---

# hrtimer\_get\_res(9)

get the timer resolution for a clock

## NAME

hrtimer\_get\_res - get the timer resolution for a clock

## SYNOPSIS

**int hrtimer\_get\_res(const clockid\_t** *which\_clock***, struct timespec \*** *tp***);**

## ARGUMENTS

*which\_clock*

which clock to query

*tp*

pointer to timespec variable to store the resolution

## DESCRIPTION

Store the resolution of the clock selected by *which\_clock* in the variable pointed to by *tp*.

## COPYRIGHT
