char* lgprint_get_timestamp(){
	Timestamp *time_now;
	memset(g_timestring,0,TIMESTRING_SIZE);
	time_now = timestamp_new();
	timestamp_get_string(time_now, g_timestring);
	timestamp_delete(time_now);
	return g_timestring;
}
Exemple #2
0
/**
 * Print out the timestamp of when the packet was heard.
 * 
 * @author    Martin Turon
 * @version   2004/9/27       mturon      Intial version
 */
void xpacket_print_time()
{
    char timestring[TIMESTRING_SIZE];
    Timestamp *time_now = timestamp_new();
    timestamp_get_string(time_now, timestring);
    printf("[%s]\n", timestring);
    timestamp_delete(time_now);
}