Greetings,
Input.TimeSinceEpoch object as defined at https://chromedevtools.github.io/devtools-protocol/tot/Input/#type-TimeSinceEpoch says UTC time in seconds, counted from January 1, 1970.
Looking at
https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/protocol/input_handler.cc;drc=aac75e1d42c143ae268bd6adfdec9191f2cc1c33;l=125,
it looks like base::TimeTicks::UnixEpoch() is being added to the
value.
My understanding is this will cause the value to be almost doubled as input parameter is UTC time in seconds.
Is my understanding correct?
Regards,
Niranjan
--
You received this message because you are subscribed to the Google Groups "chrome-debugging-protocol" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chrome-debugging-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/chrome-debugging-protocol/8aac7387-9c1a-493c-9ccf-918b88c62d7d%40paymentus.com.
Benedikt Meurer
Chrome DevTools Manager
Google Germany GmbH
Erika-Mann-Straße 33
80636 München
Geschäftsführer: Paul Manicle, Liana Sebastian
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Diese E-Mail ist vertraulich. Falls Sie diese fälschlicherweise erhalten haben sollten, leiten Sie diese bitte nicht an jemand anderes weiter, löschen Sie alle Kopien und Anhänge davon und lassen Sie mich bitte wissen, dass die E-Mail an die falsche Person gesendet wurde.
This e-mail is confidential. If you received this communication by mistake, please don't forward it to anyone else, please erase all copies and attachments, and please let me know that it has gone to the wrong person.
Hi Benedikt,
Thank you for the response. You can blame it on my lack of understanding of chromium code.
Here is what I am trying to say
As per documentation, I need to send epoch seconds - number of seconds since Jan 1st, 1970.
If I look at input_handler.cc, it has following code. To me this looks like timeStamp value which is already epoch seconds and you are adding UnixEpoch to that. Not sure if there's is other base functions/macros creating magic.
Regards,
Niranjan
This Message Is From an External Sender
Greetings,
Input.TimeSinceEpoch object as defined at https://chromedevtools.github.io/devtools-protocol/tot/Input/#type-TimeSinceEpoch says UTC time in seconds, counted from January 1, 1970.
Looking at https://source.chromium.org/chromium/chromium/src/+/main:content/browser/devtools/protocol/input_handler.cc;drc=aac75e1d42c143ae268bd6adfdec9191f2cc1c33;l=125, it looks like base::TimeTicks::UnixEpoch() is being added to the value.
My understanding is this will cause the value to be almost doubled as input parameter is UTC time in seconds.
Is my understanding correct?