summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/tools/iwn/iwnstats/main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/tools/iwn/iwnstats/main.c b/tools/tools/iwn/iwnstats/main.c
index c0b0546..590c178 100644
--- a/tools/tools/iwn/iwnstats/main.c
+++ b/tools/tools/iwn/iwnstats/main.c
@@ -38,6 +38,7 @@
#include <err.h>
#include <net/if.h>
#include <sys/endian.h>
+#include <sys/time.h>
#include <sys/types.h>
#include <sys/sysctl.h>
@@ -239,9 +240,13 @@ static void
iwn_print(struct iwnstats *is)
{
struct iwn_stats *s;
+ struct timeval tv;
s = &is->st;
+ gettimeofday(&tv, NULL);
+ printf("time=%ld.%.6ld\n", (long)tv.tv_sec, (long)tv.tv_usec);
+
iwn_stats_general_print(is, s);
/* RX */
OpenPOWER on IntegriCloud