[cocos2dx 3.0a]Getting real time but not system time

Hi, i want to make a game which need to grown something, all i doing now is checking the system time,
But if the user set the time, they can cheat easily.
I know that the only way is to get time from server.
connect to the server and get data by tag…so can get the time…
But i dun know how to do it in cocos2dx
can anyone post a sample code for me?

thanks a lots!

1 Like