github.com/status-im/status-go@v1.1.0/protocol/common/timesource.go (about)

     1  package common
     2  
     3  // TimeSource provides a unified way of getting the current time.
     4  // The intention is to always use a synchronized time source
     5  // between all components of the protocol.
     6  //
     7  // This is required by Whisper and Waku protocols
     8  // which rely on a fact that all peers
     9  // have a synchronized time source.
    10  type TimeSource interface {
    11  	GetCurrentTime() uint64
    12  }