MCPcopy Create free account
hub / github.com/cppla/ServerStatus / delta_time

Function delta_time

clients/client-linux.py:120–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 return time_list
119
120def delta_time():
121 x = get_time()
122 time.sleep(INTERVAL)
123 y = get_time()
124 for i in range(len(x)):
125 y[i]-=x[i]
126 return y
127
128def get_cpu():
129 t = delta_time()

Callers 1

get_cpuFunction · 0.85

Calls 1

get_timeFunction · 0.85

Tested by

no test coverage detected