title: Clock Ticks in android phone
body: <p>We are working on a distributed system database syncing, which relies on the real time. </p>
  
  <p>As the device's time can be changed by the user or a faulty network, it can corrupt the whole database very easily. So we decided to get the time from the Master server, store it, and calculate the real time by calculating the time interval passed by counting the number of clock ticks. 
  How can we get access to the hardware's clock ticks. And will we have to run some service for this? We want the ticks to be counted even while the device is on stand by/sleep/switched off. Like the actual clock displayed.
  We want to it to be a sort of a parallel clock, just that only the Master server will be able to set time on it.</p>