apache_beam.runners.direct.clock module

Clock implementations for real time processing and testing.

class apache_beam.runners.direct.clock.Clock[source]

Bases: object

For internal use only; no backwards-compatibility guarantees.

time()[source]

Returns the number of milliseconds since epoch.

class apache_beam.runners.direct.clock.MockClock(now_in_ms)[source]

Bases: apache_beam.runners.direct.clock.Clock

For internal use only; no backwards-compatibility guarantees.

Mock clock implementation for testing.

time()[source]
set_time(value_in_ms)[source]
advance(duration_in_ms)[source]