You are considered to have drawn the game if your opponent does not have adequate mating material when time runs out. Live chess is not affected by this problem. Whenever there is insufficient material, the player wins. When you run out of time, and your opponent does not have enough mating material, the game is a draw.