Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8929101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:35:58+00:00 2026-06-15T08:35:58+00:00

If I call NOW from within multiple threads can I assume that this is

  • 0

If I call NOW from within multiple threads can I assume that this is ok or do I need to implement locking for this? I know that date time formatting is not safe but what about date time reading?
In addition, what about QueryPerformanceCounter? I’ve looked but can’t find any definitive documentation on thread safety for these low level functions.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T08:36:00+00:00Added an answer on June 15, 2026 at 8:36 am

    Do you have access to SysUtils.pas? I have my old Delphi4 sources and there in Source\Rtl\Sys\SysUtils.pas is implementation of Now(). It seems that it uses Win API GetLocalTime() and its own EncodeDate() and EncodeTime() functions. They all are thread safe so Now() is also thread safe.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have heard that DateTime.Now is very expensive call (from here ) Is GETDATE()
I've been writing a DLL in C++, now I must call this DLL from
Currently I add a viewcontroller using pushViewController:animated: and now from within that new one
I can call a macro from within my add-in with the following code: Application.Run(MACRO_NAME);
Every now and then I need to call new[] for built-in types (usually char
Altova Mapforce create the console application now i want to call that console application
I have a jQuery ajax call that returns html of a table. Now I
I am including a jsp fragment by making an ajax call. Now this jsp
I would like to know if it's possible to access the call stack from
I have a common command that gets called from within very specific directories. There

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.