Guide to Game Development/Theory/Game logic/Setting up ticks and frames

A piece of C++ set-up code for a game that separated the ticks from the frames, where ticks are constant and frames go as fast as the system allows it.
 * BUG:
 * Error with "ns.time_since_epoch" need to replace with a function that gets the system's nanosecond date since the start of the epoch.

Another way that this can be done is:

= References =
 * Dive into C++11 [2 ]