Skip to content

Commit

Permalink
timings
Browse files Browse the repository at this point in the history
  • Loading branch information
tibvdm committed Apr 22, 2024
1 parent 6f34f2f commit 2a5eb39
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/controllers/mpa/pept2filtered_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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

0 comments on commit 2a5eb39

Please sign in to comment.