linera_base/
time.rs

1// Copyright (c) Zefchain Labs, Inc.
2// SPDX-License-Identifier: Apache-2.0
3
4/*!
5Abstractions over time that can be used natively or on the Web.
6 */
7
8cfg_if::cfg_if! {
9    if #[cfg(web)] {
10        pub use web_time::*;
11        pub use wasmtimer::tokio as timer;
12    } else {
13        pub use std::time::*;
14        pub use tokio::time as timer;
15    }
16}