Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

playback time resolution

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    playback time resolution

    Hello,

    How can I get playback stamp time in Milliseconds resolution?

    Sincerely ,Kobi

    #2
    Hello levikNT,

    Thanks for the note.

    You can get the Milliseconds of the DateTime object like so:

    Code:
    Times[0][0].Millisecond;
    Please let us know if we may be of any further assistance.

    Comment


      #3
      Hello,

      Thank you for your response,

      I am logging my strategy to a log file using the playback time for log time stamp

      I am using it as follow

      DateTime logTime = Cbi.Connection.PlaybackConnection.Now;
      logTime.ToString("dd-MM-yyyy HH:mm:ss.fff")

      but the time stamp that I get from the playback is in second resolution and not in Millisec as I exepted .

      Why??

      I would not like to use the Time series for loging message!

      In Simulation mode I take the pc time
      DateTime logTime = DateTime.Now
      logTime.ToString("dd-MM-yyyy HH:mm:ss.fff")

      and it works OK

      Sincerely,Kobi

      Comment


        #4
        Hello levikNT,

        Thanks for the reply.

        This behavior is likely because the Playback connection is only updated every second for performance reasons. Unfortunately, the only supported way of getting the millisecond data is to use the Time series.

        Please let me know if I may be of any further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        90 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        137 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        68 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by cmoran13, 04-16-2026, 01:02 PM
        0 responses
        120 views
        0 likes
        Last Post cmoran13  
        Started by PaulMohn, 04-10-2026, 11:11 AM
        0 responses
        71 views
        0 likes
        Last Post PaulMohn  
        Working...
        X