FMIceLinkManagedTimer Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | FMIceLinkManagedTimer.h FMIceLinkManagedTimer.m |
– initWithInterval:callback:
Creates a new instance of the managed timer.
- (instancetype)initWithInterval:(int)interval callback:(FMIceLinkAction0 *)callbackParameters
interval |
The millisecond interval to tick on. |
|---|---|
callback |
The callback to use when a tick occurs. |
Discussion
Creates a new instance of the managed timer.
Declared In
FMIceLinkManagedTimer.h
– interval
Gets the interval that the timer will tick on.
- (int)intervalDiscussion
Gets the interval that the timer will tick on.
Declared In
FMIceLinkManagedTimer.h
+ managedTimerWithInterval:callback:
Creates a new instance of the managed timer.
+ (FMIceLinkManagedTimer *)managedTimerWithInterval:(int)interval callback:(FMIceLinkAction0 *)callbackParameters
interval |
The millisecond interval to tick on. |
|---|---|
callback |
The callback to use when a tick occurs. |
Discussion
Creates a new instance of the managed timer.
Declared In
FMIceLinkManagedTimer.h
+ perSecondIntervalWithTimesPerSecond:
Calculates a [interval](#//api/name/interval) based on how many times you want the timer to tick per second.
+ (int)perSecondIntervalWithTimesPerSecond:(int)timesPerSecondParameters
timesPerSecond |
The amount of times to tick per second. |
|---|
Discussion
Calculates a [interval](#//api/name/interval) based on how many times you want the timer to tick per second.
Declared In
FMIceLinkManagedTimer.h
– running
Gets whether the timer is running.
- (bool)runningDiscussion
Gets whether the timer is running.
Declared In
FMIceLinkManagedTimer.h
– start
Starts the timer.
- (bool)startReturn Value
false if the timer was already started; otherwise, true.
Discussion
Starts the timer.
Declared In
FMIceLinkManagedTimer.h
– stop
Stops the timer.
- (bool)stopReturn Value
false if the timer was already stopped; otherwise, true.
Discussion
Stops the timer.
Declared In
FMIceLinkManagedTimer.h
– stopAsync
Stops the timer.
- (FMIceLinkFuture<id> *)stopAsyncReturn Value
false if the timer was already stopped; otherwise, true.
Discussion
Stops the timer.
Declared In
FMIceLinkManagedTimer.h