William Lachance's Log: Posts tagged 'Time'urn:https-wrla-ch:-tags-Time-html2013-07-08T04:00:00ZSimple command-line ntp client for Android and FirefoxOSurn:https-wrla-ch:-blog-2013-07-simple-command-line-ntp-client-for-android-and-firefoxos2013-07-08T04:00:00Z2013-07-08T04:00:00ZWilliam Lachance
<p>Today I did a quick port of Larry Doolittle’s <a href="http://doolittle.icarus.com/ntpclient/">ntpclient program</a> to Android and FirefoxOS. Basically this lets you easily synchronize your device’s time to that of a central server. Yes, there’s lots and lots of Android “applications” which let you do this, but I wanted to be able to do this from the command line because that’s how I roll. If you’re interested, source and instructions are here:</p>
<p><a href="https://github.com/wlach/ntpclient-android">https://github.com/wlach/ntpclient-android</a></p>
<p>For those curious, no, I didn’t just do this for fun. For next quarter, we want to write some Eideticker-based responsiveness tests for FirefoxOS and Android. For example, how long does it take from the time you tap on an icon in the homescreen on FirefoxOS to when the application is fully loaded? Or on Android, how long does it take to see a full list of sites in the awesomebar from the time you tap on the URL field and enter your search term?</p>
<p>Because an Eideticker test run involves two different machines (a host machine which controls the device and captures video of it in action, as well as the device itself), we need to use timestamps to really understand when and how events are being sent to the device. To do that reliably, we really need some easy way of synchronizing time between two machines (or at least accounting for the difference in their clocks, which amounts to about the same thing). NTP struck me as being the easiest, most standard way of doing this.</p>