From 997947974ca0923b344c74f8b4cec7937d1f6d87 Mon Sep 17 00:00:00 2001 From: Saul Pwanson Date: Tue, 6 Aug 2024 21:55:52 -0700 Subject: [PATCH] [status] show time on thread completion --- visidata/threads.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/visidata/threads.py b/visidata/threads.py index 95d2f2dc6..347516561 100644 --- a/visidata/threads.py +++ b/visidata/threads.py @@ -350,6 +350,9 @@ def __exit__(self, exc_type, exc_val, tb): if elapsed_s(self.thread) < min_thread_time_s: vd.threads.remove(self.thread) else: + if self.thread.sheet: + if vd.options.disp_expert or vd.options.profile: + vd.status(f'[:bold]{self.thread.sheet.name[:32]}.{self.thread.name}[/] finished in {elapsed_s(self.thread):.1f}s') if vd.options.profile: self.thread.profile.dump_stats(f'{self.thread.name}.pyprof')