In Windows, you can get time via the GetSystemTime (along with a few different C/C++ standard library functions) and set the time via SetSystemTime
Note that you need certain privileges in Windows to alter the time, so if you do not have those privileges, then you need to get the Administrator to give you more rights.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…