Consider using logging instead. That way if this is run as a cronjob on a server somewhere then timestamps will be be included in the logging statement (I believe that is done by default with logging, if not it is easy to add). Will make it easier to debug later on and be able to tell if it is running correctly when it should.