As an alternative to millis(), there’s this library I’ve made which is a wrapper for Java’s Timer class: