How do you pawn sense for set amount of time then action

Sorry no this did not work um how do I put it. I want it to only trigger if the actor sees the player the whole 3 seconds. if u get out of sight before 3 seconds it restarts.