use milliseconds as interval time