/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing project authors may * be found in the AUTHORS file in the root of the source tree. */ #ifndef SYSTEM_WRAPPERS_INCLUDE_CLOCK_H_ #define SYSTEM_WRAPPERS_INCLUDE_CLOCK_H_ #include <stdint.h> #include <atomic> #include <memory> #include "api/units/timestamp.h" #include "rtc_base/system/rtc_export.h" #include "system_wrappers/include/ntp_time.h" namespace webrtc { // January 1970, in NTP seconds. const uint32_t kNtpJan1970 = …; // Magic NTP fractional unit. const double kMagicNtpFractionalUnit = …; // A clock interface that allows reading of absolute and relative timestamps. class RTC_EXPORT Clock { … }; class SimulatedClock : public Clock { … }; } // namespace webrtc #endif // SYSTEM_WRAPPERS_INCLUDE_CLOCK_H_