# CPU usage query with different time range

**URL:** <https://discuss.prometheus.io/t/cpu-usage-query-with-different-time-range/1723>\
**Category:** PromQL\
**Created:** [June 28, 2023, 12:55pm UTC](https://discuss.prometheus.io/t/cpu-usage-query-with-different-time-range/1723 "2023-06-28T12:55:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inmar](https://avatars.discourse-cdn.com/v4/letter/i/f4b2a3/32.png) [@inmar](https://discuss.prometheus.io/u/inmar)\
**Post date:** [June 28, 2023, 12:55pm UTC](https://discuss.prometheus.io/t/cpu-usage-query-with-different-time-range/1723/1 "2023-06-28T12:55:26Z")

</div>

Hi guys  
Regarding PromQL  
I am struggling with some queries to determine the CPU usage of Windows.  
When I am using irate twice with different ranges of time I am getting the exact result. How can it be that the usage was the same for the last 20 seconds and the last 5 minutes? What am I doing wrong?  
Thanks

 ![image](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/c3dde8860c2242e5d2a26f958709f869dd237f9d.png)
