MCPcopy Create free account
hub / github.com/argumentcomputer/ix / env_duration_ms

Function env_duration_ms

crates/ffi/src/kernel.rs:2093–2098  ·  view source on GitHub ↗
(var: &str, default: Duration)

Source from the content-addressed store, hash-verified

2091 return LeanIOResult::error_string(
2092 "rs_env_extract: no constant names given",
2093 );
2094 }
2095
2096 let bytes = match std::fs::read(&path) {
2097 Ok(bytes) => bytes,
2098 Err(e) => {
2099 return LeanIOResult::error_string(&format!(
2100 "rs_env_extract: failed to read {path}: {e}"
2101 ));

Callers 1

Calls 1

varFunction · 0.50

Tested by

no test coverage detected