Simple Parametric Verse Timer
81,359 Views
-
########################### ######### EXAMPLE ######### ##### SEE CODE BELOW ###### ########################### Print("Starting timers") StartTimer(1.0, PrintArgs, (1, ?Second := 5.2)) StartTimer(2.0, PrintArgs, (5, ?Second := 5.2)) StartTimer(3.0, PrintArgs, (1)) StartTimer(4.0, PrintNoArgs, ()) # [2023.09.07-16.15.52:988][981]LogVerse: : Starting timers # [2023.09.07-16.15.53:973][ 99]LogVerse: : Args #1=1 #2=5.200000 # [2023.09.07-16.15.54:975][219]LogVerse: : Args #1=5 #2=5.200000 # [2023.09.07-16.15.55:977][339]LogVerse: : Args #1=1 #2=1.000000 # [2023.09.07-16.15.56:993][461]LogVerse: : No Args TimerToStop := StartTimer(4.0, PrintNoArgs, ()) TimerToStop.Stop() # Successfully canceled ######## SUSPENDS ######### # In 4s start <suspends> function SuspendsTimer := StartTimerSuspends(4.0, PrintSuspends, ()) Sleep(2.0) SuspendsTimer.Stop() # Successfully canceled
You're reading a preview
The full reference is free for BrainDeadGuild Discord members — sign in to read it all, or open the original at the source.
Sign in with your BrainDead.TV / BrainDeadGuild Discord account for full access.