An innovative tool for measuring efficiency and energy consumed while drilling