« Back to What is ...?

What is a monotonic timer?

Timer that starts at a specific event, such as a system boot or activation of service, and not based on actual time.

What is a monotonic timer?

A timer that starts at a specific event, such as a system boot or activation of service, and not based on actual time.

Monotonic timers are timers that do not rely on the system clock, but at an arbitrary point. Such a point is typically an event, like a service becoming active, or the operating system completed the boot process. The timer can not move backwards, as it only gets triggered upon some system actions. The system clock therefore has no impact on the timer itself.

On Linux we see monotonic timers being used in systemd. For example, a timer could be configured with the OnBootSec setting.

Learn more about systemd timers on Linux and how to configure them.

Related articles

Like to learn more? Here is a list of articles within the same category or having similar tags.

Feedback

Small picture of Michael Boelen

This article has been written by our Linux security expert Michael Boelen. With focus on creating high-quality articles and relevant examples, he wants to improve the field of Linux security. No more web full of copy-pasted blog posts.

Discovered outdated information or have a question? Share your thoughts. Thanks for your contribution!

Mastodon icon