53 std::chrono::milliseconds
interval()
const {
return std::chrono::milliseconds(interval_);}
57 template<
typename rep_t,
typename period_t = std::ratio<1>>
58 void interval(
const std::chrono::duration<rep_t, period_t>& interval) {interval_milliseconds(
static_cast<int32_t
>(std::chrono::duration_cast<std::chrono::milliseconds>(interval).count()));}
75 void stop() {enabled(
false);}
88 bool enabled_ =
false;
89 int32_t interval_ = 100;
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Represents an event.
Definition event.h:21
Contains xtd::forms::component class.
Contains xtd::event event.
Contains xtd::event_handler event handler.
event< timer, event_handler > tick
Occurs when the specified timer interval has elapsed and the timer is enabled.
Definition timer.h:80
#define forms_export_
Define shared library export.
Definition forms_export.h:13
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17