If I only need to print some timestamps I use this:
Otherwise I would use one of the third party libraries.