Timer

From IFWiki

A piece of game code that triggers some event after a certain number of turns have elapsed. This technique is often used to model lamps or torches that run out of fuel, or to create timed puzzles. Fuse is a generally synonymous term.

See daemon.