mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-23 22:29:59 -07:00
global: snap
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
//! Run with:
|
||||
//! cargo run -p brk_rpc --example compare_backends --features corepc
|
||||
|
||||
#[cfg(all(feature = "bitcoincore-rpc", feature = "corepc"))]
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
#[cfg(not(all(feature = "bitcoincore-rpc", feature = "corepc")))]
|
||||
@@ -260,6 +261,7 @@ fn main() {
|
||||
println!("=== All checks passed ===");
|
||||
}
|
||||
|
||||
#[cfg(all(feature = "bitcoincore-rpc", feature = "corepc"))]
|
||||
fn timed<T>(f: impl FnOnce() -> T) -> (Duration, T) {
|
||||
let start = Instant::now();
|
||||
let result = f();
|
||||
|
||||
Reference in New Issue
Block a user