millis()

Thanks, it worked fine when I define it a positive long.