I am wondering in games such as Unreal, SimCity and others like that, how do the programmers do the time. I mean like in Tetris I assume that a timer would triker then their would be code in that timer that would move the blocks. So what do Unreal, Simcity do. Is it a timer or something else

Thanks