-
void cudp2dlg::onudpclient() establishes a client socket and sends it with the purpose of getting the network time cstring strsend,strrece;
strsend="0 1 3 0 0 0 0 0 0 0 0 0 0";
m_,sock_dgram,"");
m_,"");
m_,64,123,"",0);
settimer(1,3000,null);
void cudp2dlg::ontimer(uint nidevent)
Establish a timer to accept the time.
char strrece[1024];
uint uport=123;
cstring strip="";
int irecv=m_,1025,strip,uport,0);
strrece[irecv]='\0';
if(irecv!=socket_error)strrece[irecv]=null;
m_editrecv=strrece;
updatedata(false);
cdialog::ontimer(nidevent);
-
Is the computer not on time?
Is it that the motherboard battery is dead.
It's OK to change it
Also use VC.
-
The getlocaltime function will do the trick, depending on the msdn
-
National Time Service Center with source code on it.
-
What's the problemQ I'll help you see.
-
It has something to do with the time zone, our Beijing time is GMT+08:00 (East 8th Zone), which is 8 hours longer than the standard time.
What is obtained is 6h, which is converted to 14h Beijing time
What is obtained is 20h, which is converted to Beijing time and is 28h-24h=4h
-
The format of the ctime is fixed, but you can add a sentence after the one above.
0"),_t("-'));
That's it.
-
My space, there are so many ways to do it.
-
Can you consider the time it takes to access a server over the Internet to determine the uniform time?
Getting a separate PC time is not unified.
-
The concept of a time slice is not for the context of the orchestration. It's for the system, and in general, the frequency of the CPU is 1 second, which is the size of the time slice.
**It is best not to spend more than half an hour on the face, because if the time is too long, not only will it not continue to deliver nutrients to **, but it will absorb the water on your ** because of the change and decrease of nutrients, which will cause **water loss, which is not good. >>>More
From a friend's friend's Weibo, I saw that my childhood playmate got married yesterday. She's twenty years old. Bless me from afar. >>>More
Explained in terms of physiological changes – as we age, the body's biological clock slows down. >>>More
When you are happy and happy, even time becomes cheerful, and at that time, you are selfless. And when you're sad, your whole sky is gray and shrouded in gray. Of course, these are only human perceptions. >>>More
The theory of relativity is only effective for the way of motion at large speeds (the speed of light), and at lower speeds, the length of this time perturbation is in the order of ultra-microseconds, so don't listen to the upstairs. >>>More