use date.now insted of performance, iOS dose not have it