Timer()
Contents
[
Hide
]Timer::Timer(TimerCallback) constructor
Constructor.
System::Threading::Timer::Timer(TimerCallback callback)
Arguments
Parameter | Type | Description |
---|---|---|
callback | TimerCallback | Function to be called by the timer. |
Timer::Timer(TimerCallback, const System::SharedPtr<System::Object>&, int64_t, int64_t) constructor
Constructor.
System::Threading::Timer::Timer(TimerCallback callback, const System::SharedPtr<System::Object> &state, int64_t dueTime, int64_t period)
Arguments
Parameter | Type | Description |
---|---|---|
callback | TimerCallback | Function to be called by the timer. |
state | const System::SharedPtr<System::Object>& | Callback function argument. |
dueTime | int64_t | Timeout before first invocation of callback function, in milliseconds; negative values doesn’t schedule timer after creation so it can be re-scheduled later. |
period | int64_t | Timeout between consequental invocations of callback function, in milliseconds; non-positive values mean that timer should only be executed once. |
Timer::Timer(TimerCallback, const System::SharedPtr<System::Object>&, System::TimeSpan, System::TimeSpan) constructor
Constructor.
System::Threading::Timer::Timer(TimerCallback callback, const System::SharedPtr<System::Object> &state, System::TimeSpan dueTime, System::TimeSpan period)
Arguments
Parameter | Type | Description |
---|---|---|
callback | TimerCallback | Function to be called by the timer. |
state | const System::SharedPtr<System::Object>& | Callback function argument. |
dueTime | System::TimeSpan | Timeout before first invocation of callback function; negative values doesn’t schedule timer after creation so it can be re-scheduled later. |
period | System::TimeSpan | Timeout between consequental invocations of callback function; non-positive values mean that timer should only be executed once. |
See Also
- Typedef TimerCallback
- Typedef SharedPtr
- Class Timer
- Class Object
- Class TimeSpan
- Namespace System::Threading
- Library Aspose.Slides