blob: b1c3d219ef38885b1162e6e99fb2299f99908a53 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef NET_TOOLS_EPOLL_SERVER_PLATFORM_IMPL_EPOLL_TIME_IMPL_H_
#define NET_TOOLS_EPOLL_SERVER_PLATFORM_IMPL_EPOLL_TIME_IMPL_H_
#include "base/time/time.h"
namespace epoll_server {
inline int64_t WallTimeNowInUsecImpl() {
return (base::Time::Now() - base::Time::UnixEpoch()).InMicroseconds();
}
} // namespace epoll_server
#endif // NET_TOOLS_EPOLL_SERVER_PLATFORM_IMPL_EPOLL_TIME_IMPL_H_