Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

help with timestamp!

hi,

first, thanks a lot for the amazing tool you created :)
second, I'm so glad your health problems are being sorted out.
third, here's my problem, reposted from the GIThub issue. I hope you can help me :/

  • how to get the timestamp (time.time()) from the corrected time stamp in the pygaze output -

I'm struggling to get the timestamp from the tsv output. I developed my own script to present stuff with pygame and it records the timestamp from the time.time() function.
I see that in pyGaze that is corrected by the 'tracker timestamp' (internal time of the eyetracker). I have no idea what it is and I would love to find a way to convert the 'time'-timestamp in the tsv into the time.time()-timestmap.
Why is this correction useful anyway, and what is the internal time of the eyetracker?
can this be done? I hope so otherwise I'm in big troubles..
thanks so much in advance!

Comments

  • edit:

    I guess this is the culprit

            sample = self._tracker.get_frame()
            t1 = time.time()
            # put the sample in the Queue
            queue.put(sample)
            # release the Threading Lock
            self._lock.release()
            # Update the newest frame
            self._newestframe = copy.deepcopy(sample)
            # Calculate the clock difference
            self._clockdiff = sample['time'] - t1
    
  • I still have no idea about that 'time', but I managed to convert the timestamp from string format into unix timestamp format :)

    thanks to this:
    http://stackoverflow.com/questions/26161156/python-converting-string-to-timestamp-with-microseconds

  • Hi Daniele, I am glad you figured it out. I thought I would still share what I know about the timestamp because I am still trying to understand it myself.
    The correction seems to be necessary because the EyeTribe has its own clock which it uses to record the time a sample was collected. Pygaze is using the computer's clock by calling the time.time() function. These two clocks are not guaranteed to be synchronized. This correction is important for example when you want to send a message from python into the EyeTribe log file, and for it to correspond with the EyeTribe time. By taking the difference of the two times, you can determine how far apart they are. You can then add this amount of time to the last sample's time and you should supposedly get a more accurate idea of when the message was logged according to the EyeTribe clock.

  • thanks for the answer!
    I checked myself the synchronization and it seems OK.
    I will ask you more about this in the future, but now I realised I have a much bigger problem..
    see my next post :)

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games