Go to the source code of this file.
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 9 of file virttime.c.
10{
14
16
20
23 test_fail( __FILE__, __LINE__,
"PAPI_get_hardware_info", 2 );
24
27
29 printf( "Testing virt time clock. (CPU Max %d MHz, CPU Min %d MHz)\n",
31 printf( "Sleeping for 10 seconds.\n" );
32 }
33
34 sleep( 10 );
35
38
41 }
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
59 test_fail( __FILE__, __LINE__,
"Virt time greater than .1 seconds!",
61
63
64 return 0;
65
66}
static const PAPI_hw_info_t * hw_info
get information about the system hardware
get virtual time counter value in clock cycles
get virtual time counter values in microseconds
initialize the PAPI library.
int tests_quiet(int argc, char **argv)
void PAPI_NORETURN test_fail(const char *file, int line, const char *call, int retval)
void PAPI_NORETURN test_pass(const char *filename)