chromium/third_party/webrtc/system_wrappers/source/clock.cc

/*
 *  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.
 */

#include "system_wrappers/include/clock.h"

#include "rtc_base/time_utils.h"

namespace webrtc {
namespace {

int64_t NtpOffsetUsCalledOnce() {}

NtpTime TimeMicrosToNtp(int64_t time_us) {}

}  // namespace

class RealTimeClock : public Clock {};

Clock* Clock::GetRealTimeClock() {}

SimulatedClock::SimulatedClock(int64_t initial_time_us)
    :{}

SimulatedClock::SimulatedClock(Timestamp initial_time)
    :{}

SimulatedClock::~SimulatedClock() {}

Timestamp SimulatedClock::CurrentTime() {}

NtpTime SimulatedClock::ConvertTimestampToNtpTime(Timestamp timestamp) {}

void SimulatedClock::AdvanceTimeMilliseconds(int64_t milliseconds) {}

void SimulatedClock::AdvanceTimeMicroseconds(int64_t microseconds) {}

// TODO(bugs.webrtc.org(12102): It's desirable to let a single thread own
// advancement of the clock. We could then replace this read-modify-write
// operation with just a thread checker. But currently, that breaks a couple of
// tests, in particular, RepeatingTaskTest.ClockIntegration and
// CallStatsTest.LastProcessedRtt.
void SimulatedClock::AdvanceTime(TimeDelta delta) {}

}  // namespace webrtc