Skip to content
Snippets Groups Projects
Commit 370bff6a authored by Jono Wenger's avatar Jono Wenger
Browse files

Add GetTimestampMS to group send bindings

parent bdb09399
No related branches found
No related tags found
1 merge request!67Release
......@@ -190,6 +190,11 @@ func (gsr *GroupSendReport) GetRoundID() int64 {
return int64(gsr.roundID)
}
// GetTimestampNano returns the timestamp of the send in nanoseconds.
func (gsr *GroupSendReport) GetTimestampNano() int64 {
return gsr.timestamp.UnixNano()
}
// GetTimestampMS returns the timestamp of the send in milliseconds.
func (gsr *GroupSendReport) GetTimestampMS() int64 {
ts := uint64(gsr.timestamp.UnixNano()) / uint64(time.Millisecond)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment