It's "ns", not "us", stoopid!
if (clock_gettime (CLOCK_REALTIME, &ts) == 0)
{
if (clock_gettime (CLOCK_REALTIME, &ts) == 0)
{
- double t = ((double) ts.tv_sec) + (((double) ts.tv_nsec) / 1000000.0);
+ double t = ((double) ts.tv_sec) + (((double) ts.tv_nsec) / 1000000000.0);
if ((sequence % 32) == 0)
fprintf (outfile, "#time,host,latency[ms]\n");
if ((sequence % 32) == 0)
fprintf (outfile, "#time,host,latency[ms]\n");