oa::Timer
Timer class in the OA Core public surface.
Public Methods
Constructor & Destructor Documentation
No public source comment is attached to this declaration.
Parameters
inDomainoa::TimerDomainDefault: oa::TimerDomain::Auto
inNameoa::StringViewDefault: = {}
No public source comment is attached to this declaration.
Public Method Documentation
Host-region boundaries. Auto resolves to Host when Begin is the first operation. Device timestamps are bracketed by oa::Engine::submit(timer).
Returns
oa::StatusThe declared return value.
commit reports a status instead of converting unavailable/incomplete measurements into a plausible 0 ms sample. Device commit never waits: the exact submission event must already be complete. Host commit has no engine.
Parameters
inEngineconst oa::Engine &—
inUnitsoa::F64Default: 1.0
Returns
oa::Result<oa::F64>The declared return value.
No public source comment is attached to this declaration.
Parameters
inUnitsoa::F64Default: 1.0
Returns
oa::Result<oa::F64>The declared return value.
No public source comment is attached to this declaration.
Returns
oa::TimerDomainThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::F64The declared return value.
No public source comment is attached to this declaration.
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::StringViewThe declared return value.
Select and acquire this engine's device timestamp backend. Auto resolves to Device here. Host timers need no engine and init is a no-op for them.
Parameters
inEngineoa::Engine &—
inNameoa::StringViewDefault: = {}
Returns
oa::StatusThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::BoolThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::BoolThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::BoolThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::BoolThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::F64The declared return value.