6 #include "../core_export.h" 8 #include "../isynchronize_invoke.h" 10 #include "../time_span.h" 67 explicit timer(
double interval);
75 timer& operator=(
const timer& timer);
86 bool auto_reset()
const noexcept;
91 timer& auto_reset(
bool value);
101 bool enabled()
const noexcept;
110 timer& enabled(
bool value);
120 double interval()
const noexcept;
129 timer& interval(
double value);
139 std::optional<std::reference_wrapper<isynchronize_invoke>> synchronizing_object()
const noexcept;
155 timer& synchronizing_object(std::nullptr_t value);
189 std::shared_ptr<data> data_;
Contains xtd::timers::elapsed_event_handler event handler.
Provides a way to synchronously or asynchronously execute a delegate.
Definition: isynchronize_invoke.h:26
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Provides data for the xtd::timers::timer::elapsed event.
Definition: elapsed_event_args.h:18
Represents an event.
Definition: event.h:21
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Represents a time interval.
Definition: time_span.h:26
event< timer, elapsed_event_handler > elapsed
Occurs when the interval elapses.
Definition: timer.h:167
Generates an event after a set interval, with an option to generate recurring events.
Definition: timer.h:48