Clock & Runtime
Output List
Column Heading
Data
Info
{{
# Get current TOD and convert to seconds
now = timespan.Now | ToSeconds
if (Globals.First != null)
# Fetch race start time and winner time from Globals List and convert to seconds (this way RR12 field can be seconds or HH:mm:ss string
raceStartedAt = Globals.First.T0 | ToSeconds
# Determine race states
isRaceStarted = raceStartedAt > 0
# Determine output based on is race started or not
if isRaceStarted
# Calculate runtime
timeSinceStart = now - raceStartedAt
# Show runtime formatted
timeSinceStart | gaz.Format "Seconds" false
else
# Before Start
# Show clock
now | gaz.Format "Seconds" false
end
else
# No contest started yet - show clock
now | gaz.Format "Seconds" false
end
}}Last updated