Elapsed time, clocks and causal order 00:00:01 A request with a negative duration A worker reports that a request finished before it started. Bela lays the wall clock beside a monotonic clock on that same machine. The service did real work even though a clock adjustment made the wall timestamp go backward. A normal request is measured at eighty milliseconds. After an adjustment the wall-time subtraction reports negative four hundred twenty milliseconds. A negative sample in this duration histogram is a measurement problem. Averaging more samples cannot correct the choice of clock. Wall clocks place events on a civil timeline and may be corrected. A monotonic clock is suitable for measuring elapsed time within its documented scope. 00:00:45 Watch two clocks across one request Values from independent machines do not share a monotonic origin. Logical clocks encode ordering constraints between events and messages, while physical timestamps carry uncertainty. Within a service, sequence numbers or monotonic durations preserve useful local information. The send precedes the matching receive even if their physical timestamps disagree. The receiver advances its logical clock using the received timestamp. Causal precedence constrains ordering, but two ordered clock values alone need not establish a causal relationship. 00:01:23 Explain a negative elapsed interval Could a monotonic timestamp collected on another machine be subtracted from this host's starting timestamp to recover the interval? A monotonic clock gives local elapsed time across two readings from a compatible clock source. Separate hosts need explicit timing assumptions. To trace distributed events retain wall timestamps with their uncertainty and use parent and child relationships or message order where available. If two hosts contributed the start and end values, a negative duration can be cross-host skew even when neither clock stepped locally. 00:02:00 Keep duration and calendar time separate The next comparable duration recorded on the local monotonic clock is eighty-two milliseconds. Physical clocks estimate real time within error. Logical clocks track ordering constraints imposed by local actions and messages. Neither alone reveals every causal relationship between independent events. Bela keeps wall time for the incident log. How long a request ran and where to find it on the calendar are different questions.