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.
If I call NOW from within multiple threads can I assume that this is
Share
Do you have access to
SysUtils.pas? I have my old Delphi4 sources and there inSource\Rtl\Sys\SysUtils.pasis implementation ofNow(). It seems that it uses Win APIGetLocalTime()and its ownEncodeDate()andEncodeTime()functions. They all are thread safe soNow()is also thread safe.