API.Util.Timers - JuDelCo/Core GitHub Wiki

Namespace: Ju.Time

Timer < T > : ITimer

where T : ITimeDeltaEvent

void Dispose();

Timer(float seconds);
Timer(float seconds, Action onCompleted);
Timer(float seconds, Action onCompleted, Func<bool> updateCondition);

Timer(float seconds, Action onCompleted, IService service);
Timer(float seconds, Action onCompleted, State state);

void Reset();
void Reset(Span elapsed);
void Stop();

Span GetDuration();
Span GetElapsedTime();
Span GetTimeLeft();

FrameTimer < T > : IFrameTimer

where T : ITimeEvent

void Dispose();

FrameTimer(int frames);
FrameTimer(int frames, Action onCompleted);
FrameTimer(int frames, Action onCompleted, Func<bool> updateCondition);

FrameTimer(int frames, Action onCompleted, IService service);
FrameTimer(int frames, Action onCompleted, State state);

void Reset();
void Stop();

int GetDuration();
int GetElapsedFrames();
int GetFramesLeft();

TimeSince

implicit operator float(TimeSince timeSince);
implicit operator TimeSince(float seconds);

TimeSinceUnscaled

implicit operator float(TimeSinceUnscaled timeSince);
implicit operator TimeSinceUnscaled(float seconds);

TimeUntil

implicit operator float(TimeUntil timeUntil);
implicit operator TimeUntil(float seconds);

TimeUntilUnscaled

implicit operator float(TimeUntilUnscaled timeUntil);
implicit operator TimeUntilUnscaled(float seconds);
⚠️ **GitHub.com Fallback** ⚠️