Giter Site home page Giter Site logo

jqcpumonitor's Introduction

介绍

JQCPUMonitor,是一个给Qt开发的,CPU使用率检测库,目前只检测CPU整体使用率。

支持3个主要平台,Windows、macOS和Linux

返回qreal类型,0表示0%使用率,1表示100%使用率,0.5表示50%使用率,以此类推

使用举例

  • 获取当前CPU使用率
JQCPUMonitor::cpuUsagePercentage()
  • 获取5秒内平均CPU使用率
JQCPUMonitor::cpuUsagePercentageIn5Second()
  • 获取30秒内平均CPU使用率
JQCPUMonitor::cpuUsagePercentageIn30Second();

关于这个库

本库源码均已开源在了GitHub上。

GitHub地址:https://github.com/188080501/JQCPUMonitor

方便的话,帮我点个星星,或者反馈一下使用意见,这是对我莫大的帮助。

若你遇到问题、有了更好的建议或者想要一些新功能,都可以直接在GitHub上提交Issues:https://github.com/188080501/JQCPUMonitor/issues

jqcpumonitor's People

Contributors

188080501 avatar chenluyong avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.