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

Function get_time

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

Source from the content-addressed store, hash-verified

111 return int(size / 1024 / 1024), int(used / 1024 / 1024)
112
113def get_time():
114 with open("/proc/stat", "r") as f:
115 time_list = f.readline().split(' ')[2:6]
116 for i in range(len(time_list)) :
117 time_list[i] = int(time_list[i])
118 return time_list
119
120def delta_time():
121 x = get_time()

Callers 1

delta_timeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected