Keep track of time in a game loop in C++
<p>How can I keep track of time in seconds and milliseconds since my game/program started? I can use the <code>clock()</code> function but I hear it is not that accurate. Is there a better way?</p>