Cast log time to int as it was passed through event listeners?