Community
cancel
Showing results for 
Search instead for 
Did you mean: 
faye_w_
Beginner
23 Views

Why doesn't QueryTimeStamp give me the correct system time?

Hi,

I am trying to modify the hands viewer example so I can save the joint data, along with the current time stamp, to a .csv file. I first used DateTime.Now, which gives me the current system time, but that is only accurate to 100 ms. So I tried to use QueryTimeStamp instead, which is in 100 ns. When I looked at the saved data, however, the time stamp is not what I expected. 

For example two of my data sets are taken a few hours apart on 3/22, and the first time stamps I got for the data sets are 131029684247698000 and 131029684326482000, respectively. According to this link (http://www.silisoftware.com/tools/date.php), the time stamps I got convert to 3/20/2016 around 5:27 pm for both of them. I don't understand why QueryTimeStamp doesn't give me the correct system time. And why would it have the same approximate starting time even though the data are obviously taken at different times?

I also tried this on a different computer. The time stamp starts with 131027152963076000 and 131027153006500000 for two of my trials, which converts to 3/17/2016 around 7:08 pm. Am I misunderstanding how QueryTimeStamp is supposed to work? 

p.s.: I need to know the absolute system time because I want to match the data captured by two cameras operating on different computers.

0 Kudos
1 Reply
samontab
Valued Contributor II
23 Views

Yes, you are misunderstanding it.

Have a look here:

https://software.intel.com/en-us/forums/realsense/topic/599079

0 Kudos