HRTIME
Section: High-resolution timing (2)
Updated: Release 0.3
NAME
get_hrtime_struct, free_hrtime_struct - high-resolution process timing
SYNOPSIS
#include <hrtime.h>
int get_hrtime_struct(pid_t pid, volatile struct hrtime_struct **dest);
int free_hrtime_struct(volatile struct hrtime_struct *hr);
ARGUMENTS
- pid
-
The pid of the process from which to map the timing values. Zero implies the
current process.
- dest
-
The pointer to be changed to point to the mapped timing values.
- hr
-
A pointer to the htrime structure to be unmapped.
DESCRIPTION
- get_hrtime_struct
-
Maps the timing structure of another process into your address space, writing
the pointer to the structure into dest. If an error occurs, the return
value is non-zero and dest is written with NULL. If pid is zero,
the current process' timing values are mapped.
- get_hrtime_struct
-
Unmaps the timing structure specified by hr from your address space.
If an error occurs, the return value is non-zero.
SEE ALSO
get_hrtime(2),
get_hrvtime(2),
get_hrutime(2),
get_hrstime(2)