Home Forums Software Development Zero timesync values in Stream Engine

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #21849
    Kirsty
    Participant

    I am using the StreamEngine API (x64_4.15.1.5) via the .NET wrappers. I would like to use the time sync methods to get an approximate system time for each data point, so I’m following the suggestions in the API Developer Guide. When I call the following code, I always get zeros for all three time values.

    
      tobii_timesync_data_t timesync;
      Interop.tobii_timesync(tobii.deviceContext, out timesync);
      Console.WriteLine($"timesync: {timesync.system_start_us}, {timesync.tracker_us}, {timesync.system_end_us}");
    

    Is this expected? Is the timesync functionality supported by all trackers? I have been testing with both a PCEye and a 5C, I get the same behaviour on both. Is there something I am doing wrong?

    Many thanks,

    #21870
    Grant [Tobii]
    Keymaster

    Hi @kirstym88, if you use the tobii_update_timesync function, this should now work correctly. Please let us know. Best Wishes.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.