This is incorrect. Think about what you are doing here: you are treating a microsecond the same as a second. A common way to generate integer based timestamps is to do something like this instead:Code:Cur_Pkt_Time=tv3.tv_sec+tv3.tv_usec;
Now Cur_Pkt_Time is a timestamp in microseconds. Make sure that Cur_Pkt_Time is a type that can hold very large integers.Code:Cur_Pkt_Time=tv3.tv_sec*1000000ul+tv3.tv_usec;