Created
April 22, 2014 08:02
-
-
Save tuoxie007/11169388 to your computer and use it in GitHub Desktop.
get-timestamp-in-c-language
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
#include <sys/time.h> | |
struct timeval tv; | |
gettimeofday(&tv, NULL); | |
double st = tv.tv_sec * 1.0 + tv.tv_usec / 1000000.0; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment