Original Address http://www.dzsc.com/data/html/2011-1-17/88338.html1 IntroductionIn distributed systems, a global time is often needed to determine the sequence of events in the system, to coordinate the transmission of various messages, and to
Http://blog.sina.com.cn/s/blog_68f909c30100pli7.htmlReal-time Clock: RTC Clock, which provides real time information for years, months, days, hours, minutes, seconds, and weeks, powered by a back-up battery, and RTC still maintains the correct time
1, millisecond level
Use GetTickCount () to get the number of milliseconds that the system started
#include usingnamespace std; int Main () { DWORD start// Gets the number of milliseconds to Sleep (+); Endl;
In the industrial production control system, there are many operations that need to be done regularly, such as: Timing display the current time, periodically refresh the progress bar on the screen, the host computer timing down the machine to send
! Microsecond-Level TimersExactTimer.h#pragma once #include BOOL readdwordkey in hkey hrootkey in lpctstr lpsubkey in lpctstr lpkey, out dword
& dwvalue) { HKEY HK; if (error_success!=regopenkey(hrootkey, lpsubkey,&HK))
Two global variables involved in Linux clock interrupts one is xtime, it is the TIMEVAL data structure variable, the other is the jiffies, first of all, look at the timeval structurestruct Timeval{time_t tv_sec; /***second***/susecond_t
Two global variables involved in Linux clock interrupts one is xtime, it is the TIMEVAL data structure variable, the other is the jiffies, first of all, look at the timeval structurestruct Timeval{time_t tv_sec; /***second***/susecond_t
Two global variables involved in Linux clock interrupts one is xtime, it is the TIMEVAL data structure variable, the other is the jiffies, first of all, look at the timeval structurestruct Timeval{time_t tv_sec; /***second***/susecond_t
First, prefaceFrom an application perspective, there are three types of time-related services that the kernel needs to provide:1, and system time-related services. For example, when you write a record to a database, you need to record the operation
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.