tensortrade.core.clock module

class tensortrade.core.clock.Clock[source]

Bases: object

A class to track the time for a process.

start

The time of start for the clock.

Type:

int

step

The time of the process the clock is at currently.

Type:

int

now(format=None)[source]

Gets the current time in the provided format.

increment()[source]

Increments the clock by specified time increment.

reset()[source]

Resets the clock.

increment() None[source]

Increments the clock by specified time increment.

now(format: str = None) datetime[source]

Gets the current time in the provided format. :param format: The format to put the current time into. :type format: str or None, optional

Returns:

datetime – The current time.

reset() None[source]

Resets the clock.