HPCToolkit
timer.h File Reference
#include <stdlib.h>
#include <stdint.h>
#include <time.h>
#include <include/uint.h>
Include dependency graph for timer.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _POSIX_SOURCE   /* enable clockid_t */
 

Functions

static uint64_t time_cvtSecToMicrosecs (uint64_t x)
 
static uint64_t time_cvtNanosecToMicrosecs (uint64_t x)
 
static int time_getTime_us (clockid_t clockid, uint64_t *time)
 
static int time_getTimeCPU (uint64_t *time)
 
static int time_getTimeReal (uint64_t *time)
 
static uint64_t time_getTSC ()
 

Macro Definition Documentation

◆ _POSIX_SOURCE

#define _POSIX_SOURCE   /* enable clockid_t */

Definition at line 69 of file timer.h.

Function Documentation

◆ time_cvtNanosecToMicrosecs()

static uint64_t time_cvtNanosecToMicrosecs ( uint64_t  x)
inlinestatic

Definition at line 100 of file timer.h.

Here is the caller graph for this function:

◆ time_cvtSecToMicrosecs()

static uint64_t time_cvtSecToMicrosecs ( uint64_t  x)
inlinestatic

Definition at line 92 of file timer.h.

Here is the caller graph for this function:

◆ time_getTime_us()

static int time_getTime_us ( clockid_t  clockid,
uint64_t *  time 
)
inlinestatic

Definition at line 110 of file timer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ time_getTimeCPU()

static int time_getTimeCPU ( uint64_t *  time)
inlinestatic

Definition at line 124 of file timer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ time_getTimeReal()

static int time_getTimeReal ( uint64_t *  time)
inlinestatic

Definition at line 131 of file timer.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ time_getTSC()

static uint64_t time_getTSC ( )
inlinestatic

Definition at line 155 of file timer.h.

Here is the caller graph for this function: