Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

thefabric-io/timetracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Time tracker

Time tracker is a lightweight utility to track the duration of a scoped process.

Usage

package main

import (
	"github.com/thefabric-io/timetracker"
	"time"
)

func main() {
	defer timetracker.Log(time.Now(), "process name")

	time.Sleep(2 * time.Second)
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages