Created
February 17, 2018 17:05
-
-
Save simias/8bcde6aed2767ce7690bc6d74f828463 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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