Adding execution time measurement facility

This is regarding issue  #918