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 custom timer interface #70

Merged
merged 1 commit into from Jan 15, 2020
Merged

Add custom timer interface #70

merged 1 commit into from Jan 15, 2020

Conversation

pheepi
Copy link
Contributor

@pheepi pheepi commented Jan 14, 2020

No description provided.

segment.go Outdated
@@ -14,6 +14,12 @@ var ErrLargeKey = errors.New("The key is larger than 65535")
var ErrLargeEntry = errors.New("The entry size is larger than 1/1024 of cache size")
var ErrNotFound = errors.New("Entry not found")

// timer holds representation of current time.
type Timer interface {
// Give current time in nanosecond precision
Copy link
Owner

Choose a reason for hiding this comment

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

It's second precision.

@coocood
Copy link
Owner

coocood commented Jan 15, 2020

@pheepi
Good job!
Thank you!

@coocood coocood merged commit c5bd9d4 into coocood:master Jan 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants