Login Page - Create Account

Support Board


Date/Time: Sun, 29 Dec 2024 15:40:07 +0000



Post From: Date time accuracy during replay using sc.CurrentDateTimeForReplay

[2016-04-29 14:59:45]
@sstfrederik - Posts: 404
Hi.
I am using sc.CurrentDateTimeForReplay, but it is not behaving as expected. Not sure if that can be changed.

My intent is to get accurate bartime information during a replay. I expect NcurrentBarTime to "see" every second. Instead its skipping based on the start the replay and replay speed selected. Which is what the documentation says.

This is not very useful when I want to execute some code at exactly 10:00:00 during a reply. This time will likely be skipped.

Any chance to have a different implementation of sc.CurrentDateTimeForReplay?

Thanks.


if(sc.IsReplayRunning()){
  SCDateTime NcurrentBarTime = sc.CurrentDateTimeForReplay;
}