Eneboo - Documentación para desarrolladores
|
'defines' | |
#define | PTW32_MUTEX_TYPES |
#define | ITERATIONS 10000000L |
#define | GetDurationMilliSecs(_TStart, _TStop) |
#define | TESTSTART { int i, j = 0, k = 0; _ftime(&currSysTimeStart); for (i = 0; i < ITERATIONS; i++) { j++; |
#define | TESTSTOP }; _ftime(&currSysTimeStop); if (j + k == i) j++; } |
Funciones | |
void | runTest (char *testNameString, int mType) |
int | main (int argc, char *argv[]) |
Variables | |
pthread_mutex_t | mx |
pthread_mutexattr_t | ma |
struct _timeb | currSysTimeStart |
struct _timeb | currSysTimeStop |
long | durationMilliSecs |
long | overHeadMilliSecs = 0 |
int | one = 1 |
int | zero = 0 |
#define GetDurationMilliSecs | ( | _TStart, | |
_TStop | |||
) |
((_TStop.time*1000+_TStop.millitm) \ - (_TStart.time*1000+_TStart.millitm))
#define ITERATIONS 10000000L |
#define PTW32_MUTEX_TYPES |
#define TESTSTART { int i, j = 0, k = 0; _ftime(&currSysTimeStart); for (i = 0; i < ITERATIONS; i++) { j++; |
#define TESTSTOP }; _ftime(&currSysTimeStop); if (j + k == i) j++; } |
void runTest | ( | char * | testNameString, |
int | mType | ||
) |
struct _timeb currSysTimeStart |
struct _timeb currSysTimeStop |
long durationMilliSecs |
long overHeadMilliSecs = 0 |