Method: Aims::Timings#add_cpu_time

Defined in:
lib/aims/output.rb

#add_cpu_time(desc, time) ⇒ Object

Add cpu timing data for the given description



111
112
113
114
# File 'lib/aims/output.rb', line 111

def add_cpu_time(desc, time)
  @timing_hash[desc] = {:cpu_time => 0, :wall_time => 0} unless @timing_hash[desc]
  @timing_hash[desc][:cpu_time] += time
end