The normal time constraint in international chess is 40 moves in two hours, followed by a further hour to reach move 60. If the game is still ongoing after this, a quickplay finish determines the winner. When using a digital clock, it's customary to experiment with an increment like 212.
The World Championship games include time limits of 120 minutes for the first 40 moves, 60 minutes for the next 20 moves, and then 15 minutes for the remaining movements, with a 30 second increment beginning on move 61.
When you run out of time and your opponent doesn't have enough mate material, the game is scored as a draw. Online chess—not live chess—has a glitch. Timely victory goes to the player with limited materials. When you run out of time and your opponent doesn't have enough mate material, the game is scored as a draw.