Skip to content

Instantly share code, notes, and snippets.

@mistydemeo
Created April 22, 2014 01:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mistydemeo/11161982 to your computer and use it in GitHub Desktop.
Save mistydemeo/11161982 to your computer and use it in GitHub Desktop.
#include <mach/mach_time.h>
#include <stdio.h>
int main()
{
mach_timebase_info_data_t s_timebase_info;
mach_timebase_info(&s_timebase_info);
printf("Timebase numer: %i\n", s_timebase_info.numer);
printf("Timebase denom: %i\n", s_timebase_info.denom);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment