+ if (outfile != NULL)
+ {
+ struct timeval tv = {0};
+ if (gettimeofday (&tv, NULL) == 0)
+ {
+ double t = ((double) tv.tv_sec) + (((double) tv.tv_usec) / 1000000.0);
+
+ if ((sequence % 32) == 0)
+ fprintf (outfile, "#time,host,latency[ms]\n");
+
+ fprintf (outfile, "%.3f,\"%s\",%.2f\n", t, context->host, latency);
+ }
+ }
+