For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
OverviewCodaControlAPI ReferenceChangelog
OverviewCodaControlAPI ReferenceChangelog
  • Coda API
  • Control API
  • Stanza API
    • stanza
    • cli
    • context
    • device
    • exceptions
    • models
    • pyvisa
    • registry
    • timing
    • utils
LogoLogo
On this page
  • Module Contents
  • Functions
  • API
Stanza API

stanza.timing

Was this page helpful?
Built with

Module Contents

Functions

NameDescription
seconds_to_nsConvert seconds to nanoseconds, rounded to the nearest integer.
to_epochConvert a timestamp to epoch time.

API

1stanza.timing.seconds_to_ns(seconds: float) -> int

Convert seconds to nanoseconds, rounded to the nearest integer.

Parameters:

Returns:

int: Time in nanoseconds

1stanza.timing.to_epoch(timestamp: float | int | datetime.datetime) -> float

Convert a timestamp to epoch time.

Parameters:

Returns:

float: Epoch time