[all-commits] [llvm/llvm-project] 14af43: [NFC][support]Add operator- to TimeRecord (#163361)
Arseniy Zaostrovnykh via All-commits
all-commits at lists.llvm.org
Tue Oct 21 06:04:51 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 14af43532f66b84512238d5c8c8038c0f782f812
https://github.com/llvm/llvm-project/commit/14af43532f66b84512238d5c8c8038c0f782f812
Author: Arseniy Zaostrovnykh <necto.ne at gmail.com>
Date: 2025-10-21 (Tue, 21 Oct 2025)
Changed paths:
M clang/lib/StaticAnalyzer/Frontend/AnalysisConsumer.cpp
M llvm/include/llvm/Support/Timer.h
Log Message:
-----------
[NFC][support]Add operator- to TimeRecord (#163361)
A common use case for the Timer is to measure time duration between two
points. Lack of operator- forced an non-intuitive two-step duration
computation: get the end time, then decrement it by the start time.
Now, as demonstrated on the example of `SyntaxCheckTimer` and
`ExprEngineTimer` one can compute duration directly.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list