Crei una variabile a cui assegni time() oppure microtime() e poi confronti la variabile con time() o microtime().