From 2a5eb3996e245c358d8188f5e19629271944a0b3 Mon Sep 17 00:00:00 2001 From: tibvdm Date: Mon, 22 Apr 2024 16:52:10 +0200 Subject: [PATCH] timings --- app/controllers/mpa/pept2filtered_controller.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/controllers/mpa/pept2filtered_controller.rb b/app/controllers/mpa/pept2filtered_controller.rb index 2ba0139..d5f37c6 100644 --- a/app/controllers/mpa/pept2filtered_controller.rb +++ b/app/controllers/mpa/pept2filtered_controller.rb @@ -6,6 +6,8 @@ def get_time end def pept2filtered + total_time = get_time + peptides = (params[:peptides] || []).uniq missed = params[:missed].nil? ? false : params[:missed] equate_il = params[:equate_il].nil? ? true : params[:equate_il] @@ -37,9 +39,12 @@ def pept2filtered end_filter_time = get_time - filter_time + end_total_time = get_time - total_time + @timings = { index_time: end_index_time, - filter_time: end_filter_time + filter_time: end_filter_time, + total_time: end_total_time } end end