fix: remove unused code
This commit is contained in:
parent
8bee421d0a
commit
99dc5ee572
|
@ -1,12 +0,0 @@
|
|||
package utils
|
||||
|
||||
import "time"
|
||||
|
||||
// GetDurationInMillseconds takes a start time and returns a duration in milliseconds
|
||||
func GetDurationInMillseconds(start time.Time) float64 {
|
||||
end := time.Now()
|
||||
duration := end.Sub(start)
|
||||
milliseconds := float64(duration) / float64(time.Millisecond)
|
||||
rounded := float64(int(milliseconds*100+.5)) / 100
|
||||
return rounded
|
||||
}
|
Loading…
Reference in New Issue
Block a user