MCPcopy Create free account
hub / github.com/angular/angular / now_us

Function now_us

packages/compiler-cli/preprocessor/ng-analyze/src/perf/layer.rs:49–51  ·  view source on GitHub ↗

Now in µs on the clock of the events, or `None` until [`install`]. The `now` RPC returns it, so Node can align the clocks with a round trip that carries no payload.

()

Source from the content-addressed store, hash-verified

47/// Now in µs on the clock of the events, or `None` until [`install`]. The `now` RPC returns it,
48/// so Node can align the clocks with a round trip that carries no payload.
49pub fn now_us() -> Option<f64> {
50 LAYER.get().map(|l| us(l.now()))
51}
52
53/// Adds `n` to `counter`. Just a load and branch unless recording.
54#[inline]

Callers 2

handle_rpc_requestFunction · 0.85
test_rpc_nowFunction · 0.85

Calls 4

usFunction · 0.85
mapMethod · 0.80
nowMethod · 0.80
getMethod · 0.65

Tested by 1

test_rpc_nowFunction · 0.68