Skip to main content

time_linear_system

Function time_linear_system 

Source
pub fn time_linear_system<T>(
    phase: LinearSystemPhase,
    f: impl FnOnce() -> T,
) -> T
Expand description

Charge the wall time f takes against phase of the active convex-path sink. A no-op wrapper when no ConvexTimingScope is open.

Phases never nest (a factorization does not run inside a back-solve), so the guard cannot clobber an outer start on the same task.