Redis System and User CPU calculation in percentage

Redis INFO command provides System and User CPU usage of Redis server in seconds.

  • used_cpu_sys: System CPU consumed by the Redis server, which is the sum of system CPU consumed by all threads of the server process (main thread and background threads)
  • used_cpu_user: User CPU consumed by the Redis server, which is the sum of user CPU consumed by all threads of the server process (main thread and background threads)

How can i calculate the percentage from seconds?