mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-08-03 03:23:35 -04:00
GetTime was never implemented. It is the interface's shared reference for anything timed — a cooldown records GetTime() + duration and something else compares against it later — so every one of those comparisons was against nil, including the ones in this client's own bootstrap. One clock behind it, in core, because two callers each keeping their own start point would disagree by however long apart they first ran. For a cooldown that is a sweep wrong by seconds that never settles. The sweep is a wedge from twelve o'clock shrinking clockwise, drawn to the corners rather than an inscribed circle — what it covers is a square icon and a circle would leave the corners lit — and clipped to the frame so the overrun does not spill onto its neighbours.
19 lines
698 B
C++
19 lines
698 B
C++
#pragma once
|
|
|
|
// One clock for anything that has to agree about "now".
|
|
//
|
|
// WoW's GetTime() is seconds since the client started, as a float, and the
|
|
// interface treats it as a shared reference: a cooldown records
|
|
// GetTime() + duration and something else compares against it later. Two
|
|
// callers each keeping their own start point would disagree by however long
|
|
// apart they first ran, which for a cooldown means a sweep that is wrong by
|
|
// seconds and never settles.
|
|
|
|
namespace wowee::core {
|
|
|
|
/// Seconds since the first call, monotonic. Not wall-clock time: it never goes
|
|
/// backwards, which is what anything measuring a duration needs.
|
|
double appTimeSeconds();
|
|
|
|
} // namespace wowee::core
|