Jump to content

Access to system timestamps


Recommended Posts

Hi, 
I was looking into timestamps generated by SRAnipal as well as Tobii SDK. In case of SRANipal, the timestamps correspond to local time stamp of eye tracker. In case of Tobii, the sdk provides two time stamps: local time stamp (as timestamp_tracker_us) which is similar to what we get in sranipal and an additional one, system (timestamp_system_us) which is synced with computer time. Is there a way to get the system time stamps in sranipal sdk via some sort of patch, etc?

Regards,
Nitesh

@Daniel_Y @Corvus

Link to comment
Share on other sites

  • 1 month later...
  • 11 months later...

Hi @Hank_Li

Do you have any update on when this feature will be available? As one year after your post, I don't know if the SDK version has changed since, but the system timestamps still aren't available.

Regards,
Vivien

Link to comment
Share on other sites

Hi @VGagliano

Yes it was~.

Please flow the sample code to get system timestamps.

int result = ViveSR::anipal::Eye::SRanipal_UpdateTimeSync();

if( result  == ViveSR::Error::WORK  ){

    int64_t time;

    ViveSR::anipal::Eye::SRanipal_GetSystemTime(&time);

    printf("%u",(unsigned )time);

}

  • Thanks 1
Link to comment
Share on other sites

  • 4 weeks later...
On 7/15/2021 at 12:06 PM, Hank_Li said:

Hi @VGagliano

Yes it was~.

Please flow the sample code to get system timestamps.

int result = ViveSR::anipal::Eye::SRanipal_UpdateTimeSync();

if( result  == ViveSR::Error::WORK  ){

    int64_t time;

    ViveSR::anipal::Eye::SRanipal_GetSystemTime(&time);

    printf("%u",(unsigned )time);

}

Dear Hank_Li, 

I have troubles running this piece of code - is there documentation on this method? So far I haven't find the description. Thank you!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...