From 4d30272e3de81a0c4244143595284e040cfb070f Mon Sep 17 00:00:00 2001 From: Giampaolo Rodola Date: Mon, 3 May 2021 13:33:16 +0200 Subject: Re. #1210: add doc warning explaining that cpu_times() values can sometimes go backwards Signed-off-by: Giampaolo Rodola --- docs/index.rst | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'docs') diff --git a/docs/index.rst b/docs/index.rst index 079b313c..a884ec80 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -144,6 +144,12 @@ CPU .. versionchanged:: 4.1.0 added *interrupt* and *dpc* fields on Windows. + .. warning:: + CPU times are always supposed to increase over time, or at least remain + the same, and that's because time cannot go backwards. + Surprisingly sometimes this might not be the case (at least on Windows + and Linux), see `#1210 `__. + .. function:: cpu_percent(interval=None, percpu=False) Return a float representing the current system-wide CPU utilization as a -- cgit v1.2.1