ae.sys.timing

Management of timed events.

Members

Classes

Timer
class Timer
TimerTask
class TimerTask

Functions

throttle
bool throttle(ref MonoTime last, Duration span)

Used to throttle actions to happen no more often than a certain period. If last was less that span ago, return false. Otherwise, update last to the current time and return true.

Structs

MonoTime
struct MonoTime

Prototype for core.time.MonoTime (TickDuration replacement). See https://github.com/D-Programming-Language/druntime/pull/711

Variables

mainTimer
Timer mainTimer;

The default timer

Meta

Authors

Simon Arlott Vladimir Panteleev <vladimir@thecybershadow.net>

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.