MCPcopy Create free account
hub / github.com/Tracktion/choc / Timer

Method Timer

choc/gui/choc_MessageLoop.h:536–540  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534#endif
535
536inline Timer::Timer (uint32_t interval, Callback&& cb)
537{
538 CHOC_ASSERT (cb != nullptr); // The callback must be a valid function!
539 pimpl = std::make_unique<Pimpl> (std::move (cb), interval);
540}
541
542template <typename Callback>
543void setTimeout (uint32_t intervalMillisecs, Callback&& callback)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected