Method: CGenerator::Library#process_times

Defined in:
lib/cgen/cgen.rb

#process_timesObject


:section: Build methods

Methods used during commit to control the build chain. In sequence, #commit calls these methods:

* #write       dumps each file template to disk, if needed
* #makedepend  executes +makedepend+
* #mkmf        calls Library#extconf
* #make        executes the system's +make+ program
* #loadlib     load the library that has been built

These methods can be overridden, but are more typically called via commit or sometimes directly. The argument to #make is interpolated into the system call as a command line argument to the make program. If the argument is ‘clean’ or ‘distclean’ then the make log is deleted; if the argument is ‘distclean’ then all .c and .h files generated by #write are deleted (additional user-supplied .c and .h files in the library dir are not affected).




776
777
778
# File 'lib/cgen/cgen.rb', line 776

def process_times
  RUBY_VERSION.to_f >= 1.7 ? Process.times : Time.times
end