atom Posted January 8, 2020 Posted January 8, 2020 How do I get the current timestamp from the eye tracker in Unity? @Corvus @Daniel_Y @Andy.YC_Wang
Corvus Posted January 9, 2020 Posted January 9, 2020 @atom You can get the timestamp with this function: ViveSR.anipal.Eye.EyeData_v2.timestamp You can find more info in the documentation. If you want an example of recording data and timestamps at 120hz please check this post: https://forum.vive.com/topic/5897-getting-verbosedata-at-the-fastest-rate-possible/?tab=comments#comment-26428
Ihshan Gumilar Posted December 14, 2020 Posted December 14, 2020 Hi, I am following this forum but I still cannot get it. It maybe because I am pretty new to vive pro eye. I just don't know how to get timestamp data ? I follow this ViveSR.anipal.Eye.EyeData_v2.timestamp but it does not work. I tried to use this code SRanipal_Eye_API.GetEyeData(ref eyeData); // Timestamp timeStampList.Add(eyeData.timestamp); Kindly see the result that I saved into CSV. The first column (TimeStamp) is the one that is produced by using the exact above code while the second column (UnixTimeStamp) is produced by using the following code var unixTimestamp = (Int32)(DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds; unixTimeStampList.Add(unixTimestamp); I don't understand why in the first column, it only produced two same timestamp. What does it mean ? Sorry I am so confused. Could anyone give me some help to get a propriate way of recording timestamp ? Thank you IG @Corvus
Corvus Posted January 15, 2021 Posted January 15, 2021 @Ihshan Gumilar What version of the eye tracking SDK & Runtime are you using? There are bug fixes in the latest release that fixed timestamp issues.
Asish Posted April 19, 2021 Posted April 19, 2021 @Corvus @Tony PH Lin why timestamp feature is more important than other features like eye_diameter, eye_openness, eye_wideness? I used SRanipal 1.1.0.1. and chi square feature selection techniques to understand the important feature and it shows timestamp is more important. I need to understand why timestamp is more important. I also found that timestamp has negative values but I don't know why. Could you please clarify it?
terfieldson15 Posted September 30, 2022 Posted September 30, 2022 The CURRENT TIMESTAMP (or CURRENT_TIMESTAMP) special register specifies a timestamp that is based on a reading of the time-of-day clock when the SQL statement is executed at the application server. We can convert date to timestamp using the Timestamp class which is present in the SQL package. The constructor of the time-stamp class requires a long value. So data needs to be converted into a long value by using the getTime() method of the date class(which is present in the util package).
stonnis918 Posted June 24 Posted June 24 I’m also looking for something similar for my Android application, like a website that calculates Date and Time from past and future. I’m facing an issue where my code only fetches UTC time or my server time, not the user's device timestamp. Any suggestions on how to handle this?
VIVE_chengnay Posted June 24 Posted June 24 Hi @stonnis918, Isn't UTC time should be user's device timestamp? Could you provide a more specific example? It will be better if you provide the code that you wrote.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now