NativeTimer

Constructors

this
this()
Undocumented in source.
this
this(size_t interval)
Undocumented in source.
this
this(Duration duration)
Undocumented in source.

Members

Functions

Reset
void Reset(bool immediately, bool once)
Undocumented in source. Be warned that the author may not have intended to support it.
Start
void Start(bool immediately, bool once)

immediately: true to call first event immediately once: true to call timed event only once

Stop
void Stop()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_handle
HANDLE _handle;
Undocumented in source.

Inherited Members

From AbstractNativeTimer

_isActive
bool _isActive;
Undocumented in source.
_interval
size_t _interval;
Undocumented in source.
ticked
TickedEventHandler ticked;

Timer tick handler

IsActive
bool IsActive [@property getter]
Interval
size_t Interval [@property getter]
size_t Interval [@property setter]
Duration Interval [@property setter]

in ms

OnTick
ITimer OnTick(TickedEventHandler handler)

The handler will be handled in another thread.

Start
void Start(bool immediately, bool once)

immediately: true to call first event immediately once: true to call timed event only once

Start
void Start(uint interval)
Undocumented in source. Be warned that the author may not have intended to support it.
Stop
void Stop()
Undocumented in source.
Reset
void Reset(bool immediately, bool once)
Undocumented in source.
Reset
void Reset(size_t interval)
Undocumented in source. Be warned that the author may not have intended to support it.
Reset
void Reset(Duration duration)
Undocumented in source. Be warned that the author may not have intended to support it.
OnTick
void OnTick()
Undocumented in source. Be warned that the author may not have intended to support it.

See Also

Meta