Add the DebugLog

And also modify the DbugLog to add timer functions