There's also the millis command that will let you control when things happen. All depends on what you are trying to.