formualizer-eval 0.7.0

High-performance Arrow-backed Excel formula engine with dependency graph and incremental recalculation
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Portable timing abstraction for the evaluation engine.
//!
//! - Default / native / portable-wasm: wraps `std::time::Instant` (zero JS deps).
//! - `js-runtime` feature (browser WASM via wasm-bindgen): wraps `web_time::Instant`,
//!   which calls `performance.now()` in the browser where `std::time::Instant` panics.
//!
//! All engine code should use `FzInstant` rather than either concrete type directly.

#[cfg(feature = "js-runtime")]
pub use web_time::Instant as FzInstant;

#[cfg(not(feature = "js-runtime"))]
pub use std::time::Instant as FzInstant;