Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add timestamp calculation functionality #33

Merged
merged 3 commits into from
Oct 19, 2022

Conversation

ReneWerner87
Copy link
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
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
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