updating hud element

I have a square drawn on the screen, wordbox specifically.
I want it to update sparingly, or at least not as much as think.
I’ve found some useful hooks, but I’m not sure what else I could use.
Is there a way to skip every other think or something?
Basically, I need a controlled way to iterate something based on time.
I’ve found some useful hooks, but I’m not sure what else I could use:
Think
Tick
UpdateAnimation

thanks.

sounds fun

[lua]local NextUpdate = 0;
hook.Add(“Think”, “update”, function()
if CurTime() >= NextUpdate then
– Update whatever you need to
NextUpdate = CurTime() + 0.1 – Next updates in 0.01 seconds (10 times a second)
end
end)[/lua]

Great.
Thanks.