blob: 9028600d9e498a4fbdd59d3ca33a5a1c7d3d4dbb [file] [log] [blame]
akmhoque8fdd6412012-12-04 15:05:33 -06001#ifndef _UTILITY_H_
2#define _UTILITY_H_
3
4char * getLocalTimeStamp(void);
5char * getGmTimeStamp(void);
6long int get_current_time_sec(void);
7void get_current_timestamp_micro(char * microSec);
8long int get_time_diff(const char *time1, const char *time2);
9
10void startLogging(char *loggingDir);
11void writeLogg(const char *source_file, const char *function, const int line, const char *format, ...);
akmhoque09c0afa2012-12-14 09:27:00 -060012struct sockaddr_in * get_ip_from_hostname(char *hostname);
akmhoque8fdd6412012-12-04 15:05:33 -060013#endif