compass.services.usage.TimedEntry#

class TimedEntry(value)[source]#

Bases: object

An entry that performs comparisons based on time added, not value

Examples

>>> a = TimedEntry(100)
>>> a > 1000
True
Parameters:

value (object) – Some value to store as an entry.

Methods

Attributes

time

Time the entry was added to the tracker

value

Value that was added to the tracker

property time#

Time the entry was added to the tracker

Type:

float

property value#

Value that was added to the tracker

Type:

object