timerfindall — Find all timer objects by exact property value.
timerfindall returns valid timer handles regardless of ObjectVisibility, optionally filtered by exact property values.
Syntax
timers = timerfindall
timers = timerfindall(Name, Value, ...)Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Name,Value | Any | Variadic | — | Property filters matched by exact value. |
Returns
| Name | Type | Description |
|---|---|---|
timers | Any | Matching timer handle, empty cell row, or cell row of timer handles. |
Errors
| Identifier | When | Message |
|---|---|---|
RunMat:timer:InvalidInput | A timer argument, property, or callback value has an unsupported type. | timer: invalid input |
RunMat:timer:InvalidProperty | A timer property name is unknown, read-only, or has an invalid value. | timer: invalid property |
RunMat:timer:InvalidHandle | A lifecycle method receives a non-timer or invalid timer handle. | timer: invalid timer handle |
RunMat:timer:CallbackFailed | A timer callback fails. | timer: callback failed |
RunMat:timer:GcFailure | A timer object cannot be allocated, rooted, read, or mutated. | timer: object storage failed |
How timerfindall works
timerfindallreturns visible and invisible valid timers in the current runtime thread.timerfindall(Name, Value, ...)applies exact property matches.- A single match returns a scalar timer handle. Zero or multiple matches return a 1-by-N cell row because RunMat does not yet have first-class MATLAB object arrays.
- Deleted timers are removed from discovery.
Does RunMat run timerfindall on the GPU?
timerfindall is host-side handle registry lookup and has no GPU behavior.
Example
Find invisible timers
t = timer('ObjectVisibility', 'off', 'TimerFcn', @tick);
allTimers = timerfindallUsing timerfindall with coding agents
Open a RunMat example with live inputs, then ask the agent to explain how timerfindall changes the result.
Run a small timerfindall example, explain the result, then change one input and compare the output.
Related Timing functions
Open-source implementation
Unlike proprietary runtimes, every RunMat function is open-source. Read exactly how timerfindall is executed, line by line, in Rust.
- View the source for timerfindall in Rust on GitHub
- Learn how the RunMat runtime works
- Found a bug? Open an issue with a minimal reproduction.
About RunMat
RunMat is an open-source runtime that executes MATLAB-syntax code blazing on any GPU. It is licensed under the Apache 2.0 license.
- RunMat automatically optimizes your math for GPU execution on Apple, Nvidia, and AMD hardware. No code changes needed. Simulations that took hours now take minutes.
- Start running code in seconds. RunMat runs in the browser, on the desktop, or from the CLI. No license server, no IT ticket.