Date/Time: Tue, 23 Oct 2018 00:13:23 +0000
Post From: E6H18 [C] 5 Min #7 | Performing a full recalculation because it has been tagged.
|Sporken - Posts: 81|
Hi, thanks for your help but unfortunately the timestamps in the message log are still not updating in real-time.
I made an ACSIL study to test things. I use sc.AddMessageToLog to output the current system "local time" from the boost C++ library. I also output the time according to sc.CurrentSystemDateTime.
Here is one of the lines.
Chart: PLF18 [CV] [M] 5 Min #1 | Study: __JASON Log constantly | BOOST local_time = 2017-Dec-22 01:13:02.189568 SIERRA sc.CurrentSystemDateTime = 1:13: 2 | 2017-12-22 01:11:46As you can see, the boost local_time (01:13:02) matches the sc.CurrentSystemDateTime (1:13: 2), but the log entry time (01:11:46) is over a minute behind.
Here is the code I use to generate this log entry.
SCSFExport scsf_JasonLogLogLog(SCStudyInterfaceRef sc)
sc.GraphRegion = 0;
sc.AutoLoop = 0;
sc.GraphName = "__JASON Log constantly";
sc.StudyDescription = "";
sc.GlobalDisplayStudyNameSubgraphNamesAndValues = 0;
sc.DisplayStudyInputValues = 0;
sc.FreeDLL = 0;
sc.UpdateAlways = 1;
boost::posix_time::ptime now = boost::posix_time::microsec_clock::local_time();
std::string time_string = boost::posix_time::to_simple_string(now);
int Year, Month, Day;
int hour, minute, second, millisecond;
sc.CurrentSystemDateTime.GetDateTimeYMDHMS_MS(Year, Month, Day, hour, minute, second, millisecond);
sc.AddMessageToLog(SCString().Format("BOOST local_time = %s SIERRA sc.CurrentSystemDateTime = %2d:%2d:%2d ", time_string.c_str(), hour, minute, second), 0);
I was surprised to see that the sc.CurrentSystemDateTime matches the boost time, but not the log time. I assumed that Sierra was using sc.CurrentSystemDateTime for the log entry.
Date Time Of Last Edit: 2017-12-22 00:37:46