Added possibility to use different start and stop measurment functions

Added to the cMeter class the possibility to use different start and stop
measurement functions, as necessary for example to measure CPU cycles.