�
�~�e� � � � d dl Z d dlZd dlmZ d dlmZ G d� d� Z G d� de� Z G d� d e� Z G d
� de� Z G d� d
e� Z y)� N)�format_delta)�format_percentc �0 � e Zd ZdZdd�Zd� Zd� Zd� Zd� Zy) �Timerzp
A timer keeps track of the number of seconds passed during it's
lifetime and since the last reset.
Nc � � |xs t j | _ | j � | _ | j | _ y �N)�time�_create_time�_creation_time�
_last_time)�self�create_times �7/usr/lib/python3/dist-packages/landscape/lib/monitor.py�__init__zTimer.__init__ s1 � �'�4�4�9�9���"�/�/�1����-�-��� c �" |