akmhoque | 59980a5 | 2012-08-09 12:36:09 -0500 | [diff] [blame] | 1 | #ifndef _UTILITY_H_ |
| 2 | #define _UTILITY_H_ |
| 3 | |
| 4 | char * getLocalTimeStamp(void); |
akmhoque | c928669 | 2012-08-16 09:57:58 -0500 | [diff] [blame] | 5 | char * getGmTimeStamp(void); |
akmhoque | f71d908 | 2012-08-22 12:51:53 -0400 | [diff] [blame] | 6 | long int get_current_time_sec(void); |
akmhoque | 03004e6 | 2012-09-06 01:12:28 -0500 | [diff] [blame] | 7 | void get_current_timestamp_micro(char * microSec); |
akmhoque | da5b683 | 2012-09-13 22:33:55 -0500 | [diff] [blame] | 8 | long int get_time_diff(const char *time1, const char *time2); |
akmhoque | 53f6422 | 2012-09-05 13:57:51 -0500 | [diff] [blame] | 9 | |
akmhoque | bfefef2 | 2012-09-26 10:09:34 -0500 | [diff] [blame^] | 10 | void startLogging(char *loggingDir); |
| 11 | void writeLogg(const char *source_file, const char *function, const int line, const char *format, ...); |
akmhoque | 59980a5 | 2012-08-09 12:36:09 -0500 | [diff] [blame] | 12 | #endif |