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

Latest commit

 

History

History
20 lines (14 loc) · 288 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 288 Bytes

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)
}