blob: b12f8f9753a444cf4dba414b09188bbaab46e506 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package clock
// ClockData is the persistent state of syncbase clock used to estimate current
// NTP time and catch any unexpected changes to system clock.
type ClockData struct {
// UTC time in unix nano seconds obtained from system clock at boot.
SystemTimeAtBoot int64
// Skew between the system clock and NTP time.
Skew int64
// The elapsed time since boot as last seen during a run of clockservice.
// This is used to determine if the device rebooted since the last run of
// clockservice.
ElapsedTimeSinceBoot int64
}