# wall clock time

Published articles for wall clock time.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## A Backward NTP Clock Step Delayed a Python Scheduler's Measurements by Nine Days

DevFeed: [A Backward NTP Clock Step Delayed a Python Scheduler's Measurements by Nine Days](<https://devfeed.tech/articles/the-ntp-clock-jump-that-made-the-scheduler-skip-a-week-of-measurements-34099.md>)

Original publisher: [Read original article](<https://philipptheserver.com/posts/clock-jump-scheduler/>)

Author: Philipp Lehmann (philipp.lehmann@gruppe.ai)

Published: 2026-09-14T07:00:00Z

Content type: tutorial

Language: en

Sources: [Philipp Lehmann](<https://devfeed.tech/sources/philipp-lehmann.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [systemd](<https://devfeed.tech/topics/systemd.md>), [Single Board Computer](<https://devfeed.tech/topics/single-board-computer.md>)

Tags: [embedded](<https://devfeed.tech/tags/embedded.md>), [linux](<https://devfeed.tech/tags/linux.md>), [ntp](<https://devfeed.tech/tags/ntp.md>), [python](<https://devfeed.tech/tags/python.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [scheduler](<https://devfeed.tech/tags/scheduler.md>), [single-board-computer](<https://devfeed.tech/tags/single-board-computer.md>), [systemd](<https://devfeed.tech/tags/systemd.md>), [time](<https://devfeed.tech/tags/time.md>), [wall-clock-time](<https://devfeed.tech/tags/wall-clock-time.md>)

### AI overview

A Python scheduler on an embedded Linux device silently stopped running after NTP corrected the system clock backward by about nine days. Because it used wall-clock time to measure elapsed time, the scheduler waited roughly nine days before running again. The article explains why a monotonic clock is the appropriate fix and mentions testing with an injected clock jump.

### Source excerpt

time.time() vs time.monotonic() in a Python scheduler: a backwards NTP step delayed runs by nine days. Monotonic durations and a jump-injecting test.

## How Prisma Compute Keeps Time Accurate in Long-Running Applications

DevFeed: [How Prisma Compute Keeps Time Accurate in Long-Running Applications](<https://devfeed.tech/articles/how-prisma-compute-keeps-time-accurate-in-long-running-applications-47715.md>)

Original publisher: [Read original article](<https://www.prisma.io/blog/prisma-compute-time-synchronization>)

Author: Alexey Orlenko

Published: 2026-06-26T00:00:00Z

Content type: article

Language: en

Sources: [Prisma](<https://devfeed.tech/sources/prisma-blog.md>)

Topics: [Prisma](<https://devfeed.tech/topics/prisma.md>), [Firecracker](<https://devfeed.tech/topics/firecracker.md>), [virtual machines](<https://devfeed.tech/topics/virtual-machines.md>), [cloud-infrastructure](<https://devfeed.tech/topics/cloud-infrastructure.md>), [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>)

Tags: [compute](<https://devfeed.tech/tags/compute.md>), [firecracker](<https://devfeed.tech/tags/firecracker.md>), [linux-kernel](<https://devfeed.tech/tags/linux-kernel.md>), [long-running](<https://devfeed.tech/tags/long-running.md>), [prisma](<https://devfeed.tech/tags/prisma.md>), [ptp](<https://devfeed.tech/tags/ptp.md>), [time-synchronization](<https://devfeed.tech/tags/time-synchronization.md>), [wall-clock-time](<https://devfeed.tech/tags/wall-clock-time.md>)

### AI overview

This article explains how Prisma Compute maintains wall-clock accuracy in long-running applications running in Firecracker microVMs. It discusses clock handling during snapshot restore, partial support for restore detection, and measured drift in VMs that remain awake.

### Source excerpt

How Prisma Compute keeps wall-clock time accurate in long-running Firecracker microVMs, using the host-paired KVM PTP clock instead of an in-guest NTP daemon.

## Branch Prediction: Why an if Inside a Hot Loop Costs Milliseconds

DevFeed: [Branch Prediction: Why an if Inside a Hot Loop Costs Milliseconds](<https://devfeed.tech/articles/branch-prediction-why-an-if-inside-a-hot-loop-costs-milliseconds-39571.md>)

Original publisher: [Read original article](<https://ankit-rana.com/logs/19-branch-prediction-loop-unrolling/>)

Author: hello@ankit-rana.com

Published: 2026-03-21T00:00:00Z

Content type: tutorial

Language: en

Sources: [Ankit Rana | Mechanical Sympathy](<https://devfeed.tech/sources/ankit-rana-mechanical-sympathy.md>)

Topics: [cpu](<https://devfeed.tech/topics/cpu.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>)

Tags: [branch](<https://devfeed.tech/tags/branch.md>), [branch-prediction](<https://devfeed.tech/tags/branch-prediction.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cycles](<https://devfeed.tech/tags/cycles.md>), [loops](<https://devfeed.tech/tags/loops.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [pipelining](<https://devfeed.tech/tags/pipelining.md>), [sorting](<https://devfeed.tech/tags/sorting.md>), [systems](<https://devfeed.tech/tags/systems.md>), [wall-clock-time](<https://devfeed.tech/tags/wall-clock-time.md>)

### AI overview

This tutorial explains how CPU pipelining and branch prediction affect performance in hot loops. It describes the cost of mispredictions and suggests sorting data to create predictable branch patterns or using branchless techniques and loop unrolling, while recommending measurement on the target workload.

### Source excerpt

CPUs pipeline instructions and speculate on branch outcomes. A misprediction discards the speculative work and flushes the pipeline at roughly 10 to 20 cycles. In a million-iteration loop with random branch outcomes, those flushes dominate runtime. Sorting the data so the branch resolves the same way for long runs, or removing the branch entirely with a mask or 0/1 multiplier, is what recovers the time.

## Tracking Wall Clock, On-CPU, and Off-CPU Time for Android Performance

DevFeed: [Tracking Wall Clock, On-CPU, and Off-CPU Time for Android Performance](<https://devfeed.tech/articles/the-three-musketeers-of-time-28540.md>)

Original publisher: [Read original article](<https://www.amanjeet.me/three-musketeers-of-time/>)

Author: Amanjeet Singh Gurtatta

Published: 2021-07-18T21:35:43Z

Content type: tutorial

Language: en

Sources: [Amanjeet Singh](<https://devfeed.tech/sources/amanjeet-singh.md>)

Topics: [Android](<https://devfeed.tech/topics/android.md>), [Process](<https://devfeed.tech/topics/process.md>), [cpu](<https://devfeed.tech/topics/cpu.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cpu-time](<https://devfeed.tech/tags/cpu-time.md>), [mobile-performance](<https://devfeed.tech/tags/mobile-performance.md>), [off-cpu-time](<https://devfeed.tech/tags/off-cpu-time.md>), [performance](<https://devfeed.tech/tags/performance.md>), [regression](<https://devfeed.tech/tags/regression.md>), [wall-clock-time](<https://devfeed.tech/tags/wall-clock-time.md>)

### AI overview

This Android performance tutorial explains wall-clock, on-CPU, and off-CPU time, including how to measure them at the process or thread level and how to choose an appropriate monotonic clock API.

### Source excerpt

The post talks about the different types of time to look for: wall clock time, on CPU time and off CPU time

## Is the Mean Really Useless?

DevFeed: [Is the Mean Really Useless?](<https://devfeed.tech/articles/is-the-mean-really-useless-12480.md>)

Original publisher: [Read original article](<http://brooker.co.za/blog/2017/12/28/mean.html>)

Author: Marc Brooker

Published: 2017-12-28T00:00:00Z

Content type: article

Language: en

Sources: [Marc Brooker's](<https://devfeed.tech/sources/marc-brooker-s-blog.md>)

Topics: [Electrical engineering and computer science (EECS)](<https://devfeed.tech/topics/electrical-engineering-and-computer-science-eecs.md>)

Tags: [1-7](<https://devfeed.tech/tags/1-7.md>), [2](<https://devfeed.tech/tags/2.md>), [allows](<https://devfeed.tech/tags/allows.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [capacity](<https://devfeed.tech/tags/capacity.md>), [capacity-planning](<https://devfeed.tech/tags/capacity-planning.md>), [computer](<https://devfeed.tech/tags/computer.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [cron](<https://devfeed.tech/tags/cron.md>), [graphs](<https://devfeed.tech/tags/graphs.md>), [jitter](<https://devfeed.tech/tags/jitter.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [outliers](<https://devfeed.tech/tags/outliers.md>), [sampling](<https://devfeed.tech/tags/sampling.md>), [statistics](<https://devfeed.tech/tags/statistics.md>), [systems](<https://devfeed.tech/tags/systems.md>), [wall-clock-time](<https://devfeed.tech/tags/wall-clock-time.md>)

### AI overview

The mean can conceal outliers and time-dependent behavior, so it cannot by itself describe system performance. The text illustrates how wall-clock-aligned sampling can report either 100% or 0% CPU for a once-per-minute job; per-minute summaries (mean 1.7%, median 0%, 99th percentile 100%) still obscure the pattern. Yet means support capacity reasoning: in a serial system, throughput is the inverse of mean latency, and Little's Law (L = λW) links long-term average concurrency, arrival rate, and time in the system. Mean request or packet size also helps estimate total resource use because multiplying the mean by the count recovers the sum. Percentiles, medians, maxima, graphs, and other statistics reveal different aspects, but no single summary is sufficient; choose the measure for the operational question.

### Source excerpt

Is the Mean Really Useless? Don't be too mean to the mean. "The mean is useless" is a commonly-repeated statement in the systems observation and monitoring world. As people correctly point out, the mean (or average1) tends to hide information about outliers, tends to be optimistic for many metrics, and can even be wildly misleading in presence of large outliers. That doesn't mean that the average is useless, just that you need to be careful of how you interpret it, and what you use it for. All descriptive statistics are misleading All descriptive statistics are misleading, and potentially dangerous. The most prosaic reason for that is that they are summaries: by their nature they don't capture the entire reality of the data they are summarizing. There is no way for a single number to capture everything you need to know about a large set of numbers. Anscombe's quartet is the most famous illustration of this problem: four data sets that have very different graphs, but the same mean and variance in 𝑥 and 𝑦, and the same linear trend. Thanks to Albert Cairo and Autodesk, there's an even more fun example: the datasaurus dozen2. There are other, more subtle, reasons that descriptive statistics are misleading too. One is that statistics in real-world computer systems change with time, and you can get very different results depending on how those changes in time align with when you sample and how long you average for. Point-in-time sampling can lead to completely missing some detail, especially when the sampling time is aligned to wall-clock time with no jitter. In this example, we've got a machine that runs a periodic job (like a cron job) every minute, and it uses all the CPU on the box for a second. If we sample periodically, aligned to the minute boundary, we'll think the box has 100% CPU usage. Instead, if we sample periodically aligned to any other second, we'll think it completely idle. If, instead, we sample every second and emit a per-minute summary we'll get a mea