SYNOPSIS
#include <time.h>
int clock_getcpuclockid(pid_t pid, clockid_t *clock_id);
DESCRIPTION
The
When you specify a value of 0 for pid,
On the NuTCRACKER Platform, you can only retrieve the clock ID for the calling process
which is CPU_PROCESS_CPUTIME_ID. If you specify any value
for pid other than 0,
PARAMETERS
- clock_id
-
Points to the location where the retrieved clock ID is stored.
- pid
-
Specifies the process ID of a process. This value can be 0 to retrieve the clock ID of the CPU-time clock of the the calling process. On the NuTCRACKER Platform, this value can only be 0.
RETURN VALUES
When successful,
Otherwise, one of the following values is returned:
CONFORMANCE
UNIX 03.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
The NuTCRACKER Platform implements this function using the Win32
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
clock_getres() ,timer_create()
PTC MKS Toolkit 10.4 Documentation Build 39.