Shaka Packager SDK
Loading...
Searching...
No Matches
clock.h
1// Copyright 2023 Google LLC. All rights reserved.
2//
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file or at
5// https://developers.google.com/open-source/licenses/bsd
6
7#ifndef SHAKA_PACKAGER_CLOCK_H
8#define SHAKA_PACKAGER_CLOCK_H
9
10#include <chrono>
11
12namespace shaka {
13
14class Clock {
15 public:
16 using time_point = std::chrono::system_clock::time_point;
17
18 virtual ~Clock() = default;
19
20 virtual time_point now() noexcept;
21};
22
23} // namespace shaka
24
25#endif // SHAKA_PACKAGER_CLOCK_H
All the methods that are virtual are virtual for mocking.