my wp schedule event is not working

WP cron tasks execute in completely separate process from page load. Nothing from the task’s output will be ever seen by users. That’s the purpose of them, to run scheduled task without interfering with site itself.

If you want to output to the page periodically you will have to build it in other way. You could store the data (such as timestamps) in an option and compare/against it on load.