1 /*
2  *  Copyright (c) 2019-present, Facebook, Inc.
3  *  All rights reserved.
4  *
5  *  This source code is licensed under the BSD-style license found in the
6  *  LICENSE file in the root directory of this source tree.
7  */
8 
9 #pragma once
10 
11 #include <chrono>
12 
13 namespace fizz {
14 
15 // Simple clock abstraction to facilitate testing.
16 class Clock {
17  public:
18   virtual ~Clock() = default;
19   virtual std::chrono::system_clock::time_point getCurrentTime() const = 0;
20 };
21 
22 } // namespace fizz
23