summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--t/btrace2fio.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/btrace2fio.c b/t/btrace2fio.c
index ef02c692..c88c0509 100644
--- a/t/btrace2fio.c
+++ b/t/btrace2fio.c
@@ -532,6 +532,7 @@ static int __output_p_fio(struct btrace_pid *p, unsigned long *ios)
{
struct btrace_out *o = &p->o;
unsigned long total;
+ unsigned long long time;
float perc;
int i, j;
@@ -585,6 +586,10 @@ static int __output_p_fio(struct btrace_pid *p, unsigned long *ios)
printf("startdelay=%llus\n", o->start_delay / 1000000ULL);
+ time = o->last_ttime - o->first_ttime;
+ time = (time + 1000000000ULL - 1) / 1000000000ULL;
+ printf("runtime=%llus\n", time);
+
printf("bssplit=");
for (i = 0; i < DDIR_RWDIR_CNT; i++) {