pyrate_limiter.abstracts.clock module

class pyrate_limiter.abstracts.clock.AbstractClock

Bases: ABC

Clock that return timestamp for now

abstract now()

Get time as of now, in miliseconds

Return type:

Union[int, Awaitable[int]]