TIME

This tutorial is specific to our newest product, Hudl Sportscode. If you’re on Sportscode v11, use these resources instead or upgrade today.

This command will return all instances that have the instance length condition.


FORMAT: instances WHERE TIME operator value


DEFINITIONS:

  • instances: the script matches all the sequences without regards to the labels.

EXAMPLE 1:

show count instances where time < 20

Displays the total number of instances from the timeline that are shorter than 20 seconds in length.

EXAMPLE 2:

$shortposs = count "scored" where row = "POSSESSION" and time < 10 show $shortposs

Obtains the number of instances from the row "POSSESSION" containing the label "scored" with a length shorter than 10 seconds and use it in the variable $shortposs. Displays the result using the SHOW command.

EXAMPLE 3:

$longposs = count "scored" where row = "POSSESSION" and time > 14 and time < 24
show $longposs

Obtains the number of instances from the row "POSSESSION" containing the label "scored" with a duration between 14 and 24 seconds. Displays the result using the SHOW command.