---
name: "struct_task_cputime"
section: "9"
platform: "linux"
package: "linux-manual-3.16"
version: "3.16.56-1+deb8u1"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_task_cputime"
---

# struct\_task\_cputime(9)

collected CPU time counts

## NAME

struct\_task\_cputime - collected CPU time counts

## SYNOPSIS

```
struct task_cputime {
  cputime_t utime;
  cputime_t stime;
  unsigned long long sum_exec_runtime;
};
```

## MEMBERS

utime

time spent in user mode, in cputime\_t units

stime

time spent in kernel mode, in cputime\_t units

sum\_exec\_runtime

total time spent on the CPU, in nanoseconds

## DESCRIPTION

This is an extension of struct cputime that includes the total runtime spent by the task from the scheduler point of view.

As a result, this structure groups together three kinds of CPU time that are tracked for threads and thread groups. Most things considering CPU time want to group these counts together and treat all three of them in parallel.

## COPYRIGHT
