Many plugins use timers, and most of them will call `millis()`, which isn't wrong, but isn't the most efficient either. While `millis()` isn't terribly expensive, it's not cheap either. For most cases, we do not need an exact timer, and one updated once per cycle is enough - which is what `.millisAtCycleStart()` is. Having a timer that is consistent throughout the whole cycle may also be beneficial. Signed-off-by: Gergely Nagy <algernon@keyboard.io>pull/321/head
parent
7b49a2c011
commit
e43d2cb391
Loading…
Reference in new issue