I'm sorry to hear that. But seriously, your sentence is correct. However, in careful writing it is better style to write small numbers in words: "three hours".
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.