Skip to content

Commit

Permalink
Expose watchdog.printEpochs in CommandScheduler (#67)
Browse files Browse the repository at this point in the history
* Expose `watchdog.printEpochs` in CommandScheduler

* Update commands2/commandscheduler.py

Co-authored-by: Jade <[email protected]>

---------

Co-authored-by: Dustin Spicuzza <[email protected]>
Co-authored-by: Jade <[email protected]>
  • Loading branch information
3 people authored Jun 23, 2024
1 parent c573294 commit 4ca8a52
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions commands2/commandscheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,6 +480,12 @@ def enable(self) -> None:
"""Enables the command scheduler."""
self._disabled = False

def printWatchdogEpochs(self) -> None:
"""
Prints list of epochs added so far and their times.
"""
self._watchdog.printEpochs()

def onCommandInitialize(self, action: Callable[[Command], Any]) -> None:
"""
Adds an action to perform on the initialization of any command by the scheduler.
Expand Down

0 comments on commit 4ca8a52

Please sign in to comment.