apache_beam.runners.direct.clock module

Clock implementations for real time processing and testing.

For internal use only. No backwards compatibility guarantees.

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

Bases: future.types.newobject.newobject

time()[source]

Returns the number of seconds since epoch.

advance_time(advance_by)[source]

Advances the clock by a number of seconds.

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

Bases: future.types.newobject.newobject

time()[source]
class apache_beam.runners.direct.clock.TestClock(current_time=0)[source]

Bases: future.types.newobject.newobject

Clock used for Testing

time()[source]
advance_time(advance_by)[source]