naiveproxy/net/third_party/quic/quartc/quartc_clock_interface.h
2018-08-11 05:35:24 +00:00

22 lines
600 B
C++

// Copyright (c) 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_THIRD_PARTY_QUIC_QUARTC_QUARTC_CLOCK_INTERFACE_H_
#define NET_THIRD_PARTY_QUIC_QUARTC_QUARTC_CLOCK_INTERFACE_H_
#include <stdint.h>
namespace net {
// Implemented by the Quartc API user to provide a timebase.
class QuartcClockInterface {
public:
virtual ~QuartcClockInterface() {}
virtual int64_t NowMicroseconds() = 0;
};
} // namespace net
#endif // NET_THIRD_PARTY_QUIC_QUARTC_QUARTC_CLOCK_INTERFACE_H_