PAPI  5.0.1.0
clockres.c
Go to the documentation of this file.
00001 
00022 #include "papi_test.h"
00023 
00024 extern int TESTS_QUIET;                /* Declared in test_utils.c */
00025 extern void clockcore( void );         /* Declared in clockcore.c */
00026 
00027 int
00028 main( int argc, char **argv )
00029 {
00030     int retval;
00031 
00032     tests_quiet( argc, argv );  /* Set TESTS_QUIET variable */
00033 
00034     if ( ( retval =
00035            PAPI_library_init( PAPI_VER_CURRENT ) ) != PAPI_VER_CURRENT )
00036         test_fail( __FILE__, __LINE__, "PAPI_library_init", retval );
00037 
00038     if ( ( retval = PAPI_set_debug( PAPI_VERB_ECONT ) ) != PAPI_OK )
00039         test_fail( __FILE__, __LINE__, "PAPI_set_debug", retval );
00040 
00041     if ( !TESTS_QUIET ) {
00042         printf( "Test case: Clock latency and resolution.\n" );
00043         printf( "-----------------------------------------------\n" );
00044     }
00045 
00046     clockcore(  );
00047 
00048     test_pass( __FILE__, NULL, 0 );
00049     exit( 1 );
00050 }
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines