Last active
August 29, 2015 14:05
-
-
Save gmodecorp/bef467f838c628680b26 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
#define GetSecond() ( gettimeofday_sec() ) | |
inline double gettimeofday_sec() | |
{ | |
struct timeval tv; | |
gettimeofday(&tv, NULL); | |
return tv.tv_sec + tv.tv_usec * 1e-6; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment