// Lock server tester
//
-#include "lock_client.h"
+#include "include/lock_client.h"
#include <arpa/inet.h>
#include <unistd.h>
+using namespace std::chrono;
+
// must be >= 2
const int nt = 6; //XXX: lab1's rpc handlers are blocking. Since rpcs uses a thread pool of 10 threads, we cannot test more than 10 blocking rpc.
static lock_client *lc[nt];
lc[i]->acquire(a);
LOG_NONMEMBER << "test2: client " << i << " acquire done";
check_grant(a);
- std::this_thread::sleep_for(milliseconds(100));
+ std::this_thread::sleep_for(100ms);
LOG_NONMEMBER << "test2: client " << i << " release";
check_release(a);
lc[i]->release(a);