mirror of
https://github.com/miniflux/v2.git
synced 2025-09-15 18:57:04 +00:00
Rename helper packages
This commit is contained in:
parent
3c3f397bf5
commit
c39f2e1a8d
31 changed files with 97 additions and 97 deletions
|
@ -1,17 +0,0 @@
|
|||
// Copyright 2017 Frédéric Guillot. All rights reserved.
|
||||
// Use of this source code is governed by the Apache 2.0
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package helper
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/miniflux/miniflux/logger"
|
||||
)
|
||||
|
||||
// ExecutionTime returns the elapsed time of a block of code.
|
||||
func ExecutionTime(start time.Time, name string) {
|
||||
elapsed := time.Since(start)
|
||||
logger.Debug("%s took %s", name, elapsed)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue