Skip to content

bradhe/stopwatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stopwatch

A simply package for timing your code. The intention is to provide a simple, light-weight library for benchmarking specific bits of your code when need be.

Example

package main

import (
  "fmt"

  "github.com/bradhe/stopwatch"
)

func main() {
  watch := stopwatch.Start()

  // Do some work.

  watch.Stop()
  fmt.Printf("Milliseconds elapsed: %v\n", watch.Milliseconds())
}

Contributing

  1. Fork and fix/implement in a branch.
  2. Make sure tests pass.
  3. Make sure you've added new coverage.
  4. Submit a PR.

About

Simple stopwatch utility for golang. I'm definitely re-inventing the wheel here.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages