Separate Time from Logger

Wrote a separte function to get the correct time stamp;