| 598 | } |
| 599 | |
| 600 | inline auto |
| 601 | EThread::Metrics::Slice::record_loop_duration(ink_hrtime delta) -> self_type & |
| 602 | { |
| 603 | if (delta > _duration._max) { |
| 604 | _duration._max = delta; |
| 605 | _duration._io_work_at_max = _duration._last_io_work; |
| 606 | } |
| 607 | if (delta < _duration._min) { |
| 608 | _duration._min = delta; |
| 609 | } |
| 610 | return *this; |
| 611 | } |
| 612 | |
| 613 | inline auto |
| 614 | EThread::Metrics::Slice::record_event_count(int count) -> self_type & |