mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 18:37:26 +08:00
13 lines
279 B
Go
13 lines
279 B
Go
package frametime
|
|
|
|
import (
|
|
"time"
|
|
|
|
"source.quilibrium.com/quilibrium/monorepo/node/protobufs"
|
|
)
|
|
|
|
// Since returns the time elapsed since the given frame was created.
|
|
func Since(frame *protobufs.ClockFrame) time.Duration {
|
|
return time.Since(time.UnixMilli(frame.Timestamp))
|
|
}
|