|
PAPI
5.0.1.0
|

Go to the source code of this file.
Defines | |
| #define | min(x, y) |
Functions | |
| static pid_t | mygettid (void) |
| long long | _darwin_get_real_cycles (void) |
| long long | _darwin_get_virt_usec_times (void) |
| long long | _darwin_get_real_usec_gettimeofday (void) |
| long long _darwin_get_real_cycles | ( | void | ) |
Definition at line 363 of file darwin-common.c.
{
long long retval;
retval = get_cycles( );
return retval;
}

| long long _darwin_get_real_usec_gettimeofday | ( | void | ) |
| long long _darwin_get_virt_usec_times | ( | void | ) |
Definition at line 389 of file darwin-common.c.
{
long long retval;
struct tms buffer;
times( &buffer );
SUBDBG( "user %d system %d\n", ( int ) buffer.tms_utime,
( int ) buffer.tms_stime );
retval = ( long long ) ( ( buffer.tms_utime + buffer.tms_stime ) *
1000000 / sysconf( _SC_CLK_TCK ));
/* NOT CLOCKS_PER_SEC as in the headers! */
return retval;
}
| static pid_t mygettid | ( | void | ) | [inline, static] |
Definition at line 11 of file darwin-common.h.
{
return pthread_self();
}
