module utils.timestamp


function time_since

time_since(timestamp: utils.timestamp.TimeStamp | float) → float

Calculate the elapsed time since the given TimeStamp or time value.


class TimeStamp

A TimeStamp object that can be used to track the time since it was created.

method TimeStamp.__init__

__init__() → None

method TimeStamp.time_since

time_since() → float

Calculate the elapsed time since this TimeStamp was created or updated.


method TimeStamp.update

update() → None

Update the TimeStamp to the current time.


This file was automatically generated via lazydocs.