当前位置:网站首页>Time. In ANSI standard library H header file
Time. In ANSI standard library H header file
2022-04-23 02:04:00 【Huang Jiajun】
Need to know something about “ Time ” and “ date ” The concept of , There are mainly the following :
Coordinated Universal Time(UTC): Coordinated universal time , Also known as world standard time , It's known as Greenwich mean time (Greenwich Mean Time,GMT). such as , Time and in mainland China UTC The time difference is +8, That is to say UTC+8. The United States is UTC-5.
Calendar Time: Calendar time , Yes, it is “ The number of seconds elapsed from a standard point in time to this point ” To represent the time of . This standard time point will be different for different compilers , But for a compilation system say , This standard time point is constant , The calendar time corresponding to the time in the compilation system is measured by the standard time point , So it can be said that the calendar time is “ Relative time ”, But no matter which time zone you are in , At the same time, for the same standard point in time , The calendar time is the same .
epoch: Point in time . The time point is in the standard C/C++ Is an integer , It uses the number of seconds between the time at this time and the standard time point ( Calendar time ) To express .
clock tick: Clock timing unit ( Instead of calling it clock ticks ), The duration of a clock unit is determined by CPU The control of the . One clock tick No CPU One clock cycle of , It is C/C++ A basic unit of time for .
We can use ANSI In the standard library time.h The header file . The method used for the time and date defined in this header file , Whether in structural definition , Or naming , Both have obvious C Language style .
版权声明
本文为[Huang Jiajun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220842089559.html
边栏推荐
- What is a makefile file?
- Use Xdebug breakpoint debugging in postman
- Nanny level tutorial on building personal home page (II)
- Startup of openstack service
- 用TensorFlow实现线性回归(包括过程中出现的问题及解决方法)
- 2022.4.10-----leetcode. eight hundred and four
- 从开源爱好者到 Apache 董事,一共分几步?
- Dynamic batch processing and static batch processing of unity
- What is a proxy IP pool and how to build it?
- 006_redis_SortedSet类型
猜你喜欢
Virtual serial port function of j-link V9 using skills
Find the largest number of two-dimensional arrays
How to initialize "naming and surname" in C language
Leetcode40 - total number of combinations II
What is an API interface?
Under the pressure of sales, domestic mobile phones began to reduce prices, but they haven't put down their final face
How can e-procurement become a value-added function in the supply chain?
NPM yarn startup error [resolved]
Is it better to use a physical machine or a virtual machine to build a website?
How to "gracefully" measure system performance
随机推荐
假如404页面是这样的 | 每日趣闻
Numerical remapping method (remap)
Is CICC fortune a company with CICC? Is it safe
Realize linear regression with tensorflow (including problems and solutions in the process)
How to configure iptables to realize local port forwarding
Is the sinking coffee industry a false prosperity or the eve of a broken situation?
Thinkphp内核开发盲盒商城源码v2.0 对接易支付/阿里云短信/七牛云存储
Virtual serial port function of j-link V9 using skills
World Book Day 𞓜 a good book that technicians should not miss (it cutting-edge technology)
What is a proxy IP pool and how to build it?
[leetcode daily question] 396 Rotation function
How to call out services in idea and display the startup class in services
什么是api接口?
Under the pressure of sales, domestic mobile phones began to reduce prices, but they haven't put down their final face
postman里面使用 xdebug 断点调试
简洁开源的一款导航网站源码
Leetcode46 Full Permutation
006_redis_jedis快速入门
Use Xdebug breakpoint debugging in postman
Challenges often faced by client project management