Are you using c++11? 'cause if you do just look round #include <chrono> , else just use the sleep function with a damn huge number.. (not sure if its the safe way --')
std::chrono can be tough to get used to. I've only used it for performance monitoring myself but, I suppose you might be able to hack together some stuff with duration objects to suit your purposes... but 2 hours is a very long time. I'm curious as to the application.