---
name: "rtl_getschedclock"
section: "3"
platform: "linux"
package: "rtlinux"
version: "2.0rel-1"
release: "Debian 2.2 (Potato)"
platforms: ["linux"]
url: "https://new.carta.tech/rtl_getschedclock"
---

# rtl\_getschedclock(3)

get the current scheduler clock

## NAME

rtl\_getschedclock - get the current scheduler clock

## SYNOPSIS

**#include \<rtl\_sched.h\>**

**clockid\_t rtl\_getschedclock(void);**

## DESCRIPTION

This function is a non-portable Real-Time Linux extension. **rtl\_getschedclock** returns the clock id of the clock that the real-time scheduler uses on the local CPU.

## AUTHOR

Michael Barabanov \<baraban@fsmlabs.com\>

## SEE ALSO

[**clock\_gettime**(3)](/clock_gettime/3.md), [**clock\_gethrtime**(3)](/clock_gethrtime/3.md)
