Make the timing consitent in simulation
This commit is contained in:
parent
036b6ac4df
commit
6c729e7f25
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
#ifndef FDBRPC_TIMED_REQUEST_H
|
#ifndef FDBRPC_TIMED_REQUEST_H
|
||||||
#define FDBRPC_TIMED_REQUEST_H
|
#define FDBRPC_TIMED_REQUEST_H
|
||||||
|
#include "flow/network.h"
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <fdbrpc/fdbrpc.h>
|
#include <fdbrpc/fdbrpc.h>
|
||||||
|
@ -35,7 +36,7 @@ public:
|
||||||
|
|
||||||
TimedRequest() {
|
TimedRequest() {
|
||||||
if (!FlowTransport::isClient()) {
|
if (!FlowTransport::isClient()) {
|
||||||
_requestTime = timer();
|
_requestTime = g_network->timer();
|
||||||
} else {
|
} else {
|
||||||
_requestTime = 0.0;
|
_requestTime = 0.0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue