Why don't you use profile (IDLE_TIME) ?