cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
How to Change Clock Time
How to Change Clock Time
Nov 28, 2013 at 11:42pm UTC
srj
(2)
The system clock starts once the system is executed. But how can I update the clock value to certain other value? Let say, for example. If a=10, then, immediately the clock is set to 10 seconds after the current clock time. Is it possible?
Last edited on
Nov 28, 2013 at 11:43pm UTC
Nov 29, 2013 at 12:03am UTC
Mats
(1398)
1
2
a = time(0);
//Or whatever other time, in seconds.
a = a + 10;
Topic archived. No new replies allowed.