how can we fetch the system time regulerly irrespect to the another part of the program? how it's possible to do so actually its a validation in a game,but i dont have an idea how can be implement.

Threads.

Threads is one option; another is to use timers.

It really depends on what you are trying to validate. Are you looking to drive control of the game or just report the system time while the game is being played?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.