Skip to content

Add timestamp calculation functionality#33

Merged
ReneWerner87 merged 3 commits intomasterfrom
add_timestamp_calculator
Oct 19, 2022
Merged

Add timestamp calculation functionality#33
ReneWerner87 merged 3 commits intomasterfrom
add_timestamp_calculator

Conversation

@ReneWerner87
Copy link
Copy Markdown
Member

No description provided.

@ReneWerner87 ReneWerner87 merged commit b802ab8 into master Oct 19, 2022
@efectn efectn deleted the add_timestamp_calculator branch October 19, 2022 07:43
timestampTimer sync.Once
// Timestamp please start the timer function before you use this value
// please load the value with atomic `atomic.LoadUint32(&utils.Timestamp)`
Timestamp uint32
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this exported? For v3, why not make this unexported and instead provide

func Timestamp() uint32 {
    return atomic.LoadUint32(&utils.Timestamp)
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #38.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants