HRTIME

Section: High-resolution timing (2)
Updated: Release 0.5
Index Return to libhrtime home
 

NAME

get_hrtime_struct, free_hrtime_struct - high-resolution process timing  

SYNOPSIS

#include <hrtime.h>

int hrtime_init();
int get_hrtime_struct(pid_t pid, struct hrtime_struct **dest);
int free_hrtime_struct(struct hrtime_struct *hr);
 

ARGUMENTS

pid
The pid of the process from which to map the timing values.
dest
The pointer to be changed to point to the mapped timing values.
hr
A pointer to the htrime structure to be unmapped.
 

DESCRIPTION

hrtime_init
Perform hrtime library initialization. This must be called before any process querying function is called.
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.
 

AUTHOR

Nick Rasmussen <nick@jive.org>  

SEE ALSO

get_hrtime(2), get_hrvtime(2), get_hrutime(2), get_hrstime(2) get_hrtime_self(2), get_hrvtime_self(2), get_hrutime_self(2), get_hrstime_self(2)


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION
AUTHOR
SEE ALSO

This document was created by man2html, using the manual pages.
Time: 16:52:45 GMT, May 04, 2000