Use glutTimerFunc() to register a timer callback. Have the timer callback call glutPostRedisplay(). Have the display callback read the current time using e.g. time() and localtime() and use the results to position the hands.

06-25-2013, 02:49 PM

waqar ahmad

tm_sec <Unable to read memory> Error time function doesn't reading memory to get time