ophyd_async.core.in_micros#

ophyd_async.core.in_micros(t: float) int[source]#

Converts between a positive number of seconds and an equivalent number of microseconds.

Args:

t (float): A time in seconds

Raises:

ValueError: if t < 0

Returns:

t (int): A time in microseconds, rounded up to the nearest whole microsecond,