Lego Stopwatch

by Legobumb
A simple stopwatch style library that's pretty versatile. [More]
To download this library for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://Legobumb.LegoStopwatch##version=4

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://Legobumb.LegoStopwatch##version=4

94 downloads
Version v1.2
Date added: Jun 9 2020
Last updated: Feb 24
0 fans
Simple and versatile stopwatch library that can be used for many different things in games.

I include the base Stopwatch datum that basically acts like any normal stopwatch would - counting from 0 upward endlessly, using world.time; a Countdown datum that also acts like another feature normal stopwatches would have - counting down from a starting time that is set by the user; and a Playtime datum that's meant to track how long a player has played during their current session and adding it to their total playtime.

v1.2
- Fixed the infinite recursive referencing between the Countdown specific procs IsRunning() and GetElapsedTimed(), IsFinished(), and GetTimeLeft().
- Removed the GetTimeLeft() proc as it was redundant