following changes have been applied
1. correct the regular expression
2. add time usage calculation in monitor thread