clock_gethrtime(3)

clock_gethrtime3

Get high resolution time using the specified clock

Usage

#include <rtl_time.h>

hrtime_t clock_gethrtime(clockid_t clock);

Overview

This function is a non-portable Real-Time Linux extension. clock_gethrtime returns the clock reading in nanoseconds. This is a convenience function for clock_gettime(3)

hrtime_t is a 64-bit signed integer.

Notes

The following clocks are supported by this release of Real-Time Linux:

CLOCK_REALTIME

The standard POSIX clock.

CLOCK_8254

The clock that is used on non-SMP x86 systems.

CLOCK_APIC

The local APIC clock on SMP x86 systems.

Author

Michael Barabanov <[email protected]>

From rtlinux 2.0rel-1 in Debian 2.2 (Potato). Parsed by carta from the page's man source.