commit | 60cd6d444bd9ab9041c33c15f070a7e45d5a0f1c | [log] [tgz] |
---|---|---|
author | akmhoque <akmhoque@gmail.com> | Thu Oct 11 04:33:18 2012 -0500 |
committer | akmhoque <akmhoque@gmail.com> | Thu Oct 11 04:33:18 2012 -0500 |
tree | 83ab246e6340a206115599ece734275869db4181 | |
parent | 1001d28a86a6dd5bb64ccfd405606bba122dd8a3 [diff] [blame] |
Time Stamp Update
diff --git a/utility.c b/utility.c index 1218623..b136c67 100644 --- a/utility.c +++ b/utility.c
@@ -71,14 +71,9 @@ void get_current_timestamp_micro(char * microSec) { - time_t gtime; - gtime=time(NULL); - struct tm *tm; - tm=localtime(>ime); - struct timeval now; gettimeofday(&now, NULL); - sprintf(microSec,"%ld%06ld",now.tv_sec-tm->tm_gmtoff,(long int)now.tv_usec); + sprintf(microSec,"%ld%06ld",now.tv_sec,(long int)now.tv_usec); }