Skip to content

Instantly share code, notes, and snippets.

@simias
Created February 17, 2018 17:05
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 simias/8bcde6aed2767ce7690bc6d74f828463 to your computer and use it in GitHub Desktop.
Save simias/8bcde6aed2767ce7690bc6d74f828463 to your computer and use it in GitHub Desktop.
/**
* cpu_features_get_time_usec:
*
* Gets time in microseconds.
*
* Returns: time in microseconds.
**/
retro_time_t cpu_features_get_time_usec(void)
{
struct timeval tv;
gettimeofday(&tv,NULL);
return (1000000 * tv.tv_sec + tv.tv_usec);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment