Commit ef93bc17 authored by Evan Hunt's avatar Evan Hunt
Browse files

#include <sys/time.h> for gettimeofday()


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@278 e5f2f494-b856-4b98-b285-d166d9295462
parent 0794e56f
......@@ -17,6 +17,7 @@
#include <stdexcept>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <iostream>
......@@ -66,8 +67,7 @@ CommandSession::getCommand(int counter) {
ElementPtr>());
gettimeofday(&now, NULL);
resp->set("sent", Element::create(now.tv_sec +
(double)now.tv_usec /
1000000));
(double)now.tv_usec / 1000000));
resp->set("counter", Element::create(counter));
session_.group_sendmsg(resp, "statistics");
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment