Struct CPUInfo

Synopsis

#include <src/uvw/util.h>

struct CPUInfo

Description

CPU information.

Source

Lines 330-343 in src/uvw/util.h.

struct CPUInfo {
    using CPUTime = decltype(uv_cpu_info_t::cpu_times);

    std::string model; /*!< The model of the CPU. */
    int speed; /*!< The frequency of the CPU. */

    /**
     * @brief CPU times.
     *
     * It is built up of the following data members: `user`, `nice`, `sys`,
     * `idle`, `irq`, all of them having type `uint64_t`.
     */
    CPUTime times;
};





Add Discussion as Guest

Log in