code: def get(cls):
          
          stats = {}
          cur_time = time.time()
          # minimum interval for getting CPU and memory statistics
          if cur_time < cls._last_measurement or \
             cur_time > cls._last_measurement + 1.9:
              cls._last_measurement = cur_time
              # Non blocking call to get cpu usage. First call will return 0
              cls._last_cpu_percent = psutil.cpu_percent(interval=None)
              cls._last_mem_percent = psutil.virtual_memory().percent
          stats["cpu_usage_percent"] = cls._last_cpu_percent
          stats["memory_usage_percent"] = cls._last_mem_percent
          return stats
docs: Get ping statistics
  
          :returns: hash