C# Класс hyades.utils.TimerCollection

A managed collection of timers.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Create ( float tickLength, bool repeats, Action tick ) : Timer

Creates a new Timer.

GetInstance ( ) : TimerCollection
Update ( double elapsed ) : void

Updates all timers in the collection.

Приватные методы

Метод Описание
TimerCollection ( ) : System

Описание методов

Create() публичный Метод

Creates a new Timer.
public Create ( float tickLength, bool repeats, Action tick ) : Timer
tickLength float The amount of time between the timer's ticks.
repeats bool Whether or not the timer repeats.
tick Action An action to perform when the timer ticks.
Результат Timer

GetInstance() публичный статический Метод

public static GetInstance ( ) : TimerCollection
Результат TimerCollection

Update() публичный Метод

Updates all timers in the collection.
public Update ( double elapsed ) : void
elapsed double
Результат void