mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 01:24:17 +00:00
29 lines
581 B
ReStructuredText
29 lines
581 B
ReStructuredText
:mod:`tools` -- Timing and Datalogging
|
|
======================================
|
|
|
|
.. automodule:: pybricks.tools
|
|
:no-members:
|
|
|
|
.. autofunction:: print
|
|
|
|
Example::
|
|
|
|
# Print some text
|
|
print("Hello, world")
|
|
|
|
# Print some text and a number
|
|
print("Value:", 5)
|
|
|
|
.. autofunction:: wait
|
|
|
|
.. autoclass:: pybricks.tools.StopWatch
|
|
:no-members:
|
|
|
|
.. automethod:: pybricks.tools.StopWatch.time
|
|
|
|
.. automethod:: pybricks.tools.StopWatch.pause
|
|
|
|
.. automethod:: pybricks.tools.StopWatch.resume
|
|
|
|
.. automethod:: pybricks.tools.StopWatch.reset
|