# `getrusage()` on Windows

> Section in “New and Extended Functionality › I/O and Filesystem” of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/new-and-extended-functionality/io-and-filesystem/getrusage-on-windows/>

The function `getrusage()` returns information about the resource usage. Since PHP 7, this function is also supported on Windows. It returns information about the user time and system time spent by the running script.

---

Previous: [proc_nice() on Windows](https://php7explained.com/new-and-extended-functionality/io-and-filesystem/proc_nice-on-windows/index.html.md) | Next: [memory_limit on Windows](https://php7explained.com/new-and-extended-functionality/io-and-filesystem/memory_limit-on-windows/index.html.md)
