fix the time counting bug
fix bug when using absolute path