diff options
| author | Arseniy Zaostrovnykh <necto.ne@gmail.com> | 2025-10-21 15:04:29 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-21 13:04:29 +0000 |
| commit | 14af43532f66b84512238d5c8c8038c0f782f812 (patch) | |
| tree | 7fa8e35d95a627b4d4c78b8c2349f742db03093a /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp | |
| parent | a58544890310593c08f3887d84014d9f95a06667 (diff) | |
| download | llvm-14af43532f66b84512238d5c8c8038c0f782f812.zip llvm-14af43532f66b84512238d5c8c8038c0f782f812.tar.gz llvm-14af43532f66b84512238d5c8c8038c0f782f812.tar.bz2 | |
[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.
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions
