Make Clock::ConvertTimestampToNtpTime pure virtual
No-Try because of lack of infra lack of capacity on macs. No-Try: True Bug: webrtc:11327 Change-Id: I9296bb92fdd62800da3ddd80789164c80350577d Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/219782 Commit-Queue: Paul Hallak <phallak@google.com> Reviewed-by: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34073}
This commit is contained in:
parent
e93fe6c532
commit
2491dbdf0b
@ -47,11 +47,7 @@ class RTC_EXPORT Clock {
|
|||||||
int64_t CurrentNtpInMilliseconds() { return CurrentNtpTime().ToMs(); }
|
int64_t CurrentNtpInMilliseconds() { return CurrentNtpTime().ToMs(); }
|
||||||
|
|
||||||
// Converts between a relative timestamp returned by this clock, to NTP time.
|
// Converts between a relative timestamp returned by this clock, to NTP time.
|
||||||
// TODO(bugs.webrtc.org/11327): Make this method pure virtual,
|
virtual NtpTime ConvertTimestampToNtpTime(Timestamp timestamp) = 0;
|
||||||
// and delete default dummy implementation.
|
|
||||||
virtual NtpTime ConvertTimestampToNtpTime(Timestamp timestamp) {
|
|
||||||
return NtpTime();
|
|
||||||
}
|
|
||||||
int64_t ConvertTimestampToNtpTimeInMilliseconds(int64_t timestamp_ms) {
|
int64_t ConvertTimestampToNtpTimeInMilliseconds(int64_t timestamp_ms) {
|
||||||
return ConvertTimestampToNtpTime(Timestamp::Millis(timestamp_ms)).ToMs();
|
return ConvertTimestampToNtpTime(Timestamp::Millis(timestamp_ms)).ToMs();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user