mariadb/linux/tests/test-cpu-freq.c
Rich Prohaska 6e3ddb3d14 port get_processor_frequency from 2.2.0 to main refs[t:2083]
git-svn-id: file:///svn/toku/tokudb@15130 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-16 23:58:04 -04:00

12 lines
246 B
C

#include <stdio.h>
#include <assert.h>
#include <toku_stdint.h>
#include <toku_os.h>
int main(void) {
uint64_t cpuhz;
int r = toku_os_get_processor_frequency(&cpuhz);
assert(r == 0);
printf("%"PRIu64"\n", cpuhz);
return 0;
}