SetTimer() help

i tried that but it was saying GetWorldTimerManager wasnt a part of World so i changed it to this



GetWorld()->GetTimerManager().SetTimer(UnusedHandle, this, &AWeapon_Instant::WeaponReload, 1.0f, false);


i tried to use it in an if statement and it wouldnt work so how would i be able to check if the timer has been 1 second?

Im trying to make it so after 1 second it will execute the following code.