The time interval for obtaining SQL server DateTime is not 1 ms, the time interval is 3.33 ms, and 3.33 ms C # development,

Source: Internet
Author: User

The time interval for obtaining SQL server DateTime is not 1 ms, the time interval is 3.33 ms, and 3.33 ms C # development,


The time interval for obtaining DateTime in SQL server is 3.33 milliseconds (3.33 ms). Therefore, if the value is increased by 1 millisecond, the default time of the database is not increased.

C # Development

DateTime dt = new DateTime ();

Dt = DateTime. Now;
Dt = dt. AddMilliseconds (1); // The value of dt does not change in the database. The time difference is 1 millisecond, and the default time of sqlserver does not increase.

Dt = dt. AddMilliseconds (3); // the time difference between 3 ms and 3 ms for the value of dt in the database is increased.



Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.