Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* 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