Skip to content

Commit

Permalink
Merge pull request #258 from sourcebots/robot-dot-sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
tpoomlmly authored Aug 7, 2022
2 parents ec639a0 + 280f206 commit eaf57d4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sbot/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import logging
from datetime import timedelta
from time import sleep
from typing import Any, Dict, Optional, TypeVar, cast

from j5 import BaseRobot, BoardGroup
Expand Down Expand Up @@ -165,6 +166,10 @@ def is_competition(self) -> bool:
except KeyError:
raise metadata.MetadataKeyError("is_competition") from None

def sleep(self, secs: float) -> None:
"""Pause the program for secs seconds."""
sleep(secs)

# Custom functionality

def wait_start(self) -> None:
Expand Down

0 comments on commit eaf57d4

Please sign in to comment.