# File lib/ruby-prof/graph_printer.rb, line 29
    def calculate_thread_times
      # Cache thread times since this is an expensive
      # operation with the required sorting      
      @result.threads.each do |thread_id, methods|
        top = methods.max
        
        thread_time = [top.total_time, 0.01].max
        
        @thread_times[thread_id] = thread_time 
      end
    end