add mail processing time measuring part