how to program a watch on c++ opengl