| Package | Description |
|---|---|
| cn.sissors.hummingbird.runtime.timer |
| Modifier and Type | Method and Description |
|---|---|
static Timer |
TimerManager.create()
Create a timer with an empty name and start after creation.
|
static Timer |
TimerManager.create(String name)
Create a timer with a given name and start after creation.
|
static Timer |
TimerManager.createWithoutStart(String name)
Create a timer with a given name.
|
static Timer |
TimerManager.getFirstTimer()
Get the oldest created timer with the default name.
|
static Timer |
TimerManager.getFirstTimer(String name)
Get the oldest created timer with the specified name.
|
static Timer |
TimerManager.getLastTimer()
Get the newest created timer with the default name.
|
static Timer |
TimerManager.getLastTimer(String name)
Get the newest created timer with the specified name.
|
static Timer |
TimerManager.start()
Start a timer with the default name
EMPTY_NAME. |
static Timer |
TimerManager.start(String name)
Start a timer with the specified name.
|
static Timer |
TimerManager.stop()
Stop a timer with the default name
EMPTY_NAME. |
static Timer |
TimerManager.stop(String name)
Stop a timer with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
static List<Timer> |
TimerManager.getTimerGroup()
Get the group of timers with the default name.
|
static List<Timer> |
TimerManager.getTimerGroup(String name)
Get the group of timers with the specified name.
|
Copyright © 2019. All rights reserved.