Use clock_gettime()

This commit is contained in:
Vitaliy Filippov
2020-03-03 00:54:42 +03:00
parent 7eac7b6d55
commit 20125db181
4 changed files with 18 additions and 18 deletions
+1 -1
View File
@@ -349,7 +349,7 @@ void osd_t::stop_client(int peer_fd)
void osd_t::exec_op(osd_op_t *cur_op)
{
gettimeofday(&cur_op->tv_begin, NULL);
clock_gettime(CLOCK_REALTIME, &cur_op->tv_begin);
if (stopping)
{
// Throw operation away