mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
e3a4de8b55
Summary: changelog: [internal] Add unit tests for `RuntimeScheduler::now` Reviewed By: JoshuaGross Differential Revision: D27763852 fbshipit-source-id: 1edec8e8338e9d9798b95c55d07114be05f555b8
23 lines
549 B
C++
23 lines
549 B
C++
/*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <chrono>
|
|
|
|
namespace facebook::react {
|
|
|
|
/*
|
|
* Represents a monotonic clock suitable for measuring intervals.
|
|
*/
|
|
using RuntimeSchedulerClock = std::chrono::steady_clock;
|
|
|
|
using RuntimeSchedulerTimePoint = RuntimeSchedulerClock::time_point;
|
|
using RuntimeSchedulerDuration = RuntimeSchedulerClock::duration;
|
|
|
|
} // namespace facebook::react
|