2021-02-10 19:29:47 +00:00
|
|
|
package flog
|
|
|
|
|
2021-02-10 19:40:40 +00:00
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2021-02-10 19:29:47 +00:00
|
|
|
func (receiver internalLogger) End(a ...interface{}) {
|
2021-02-10 19:40:40 +00:00
|
|
|
diff := time.Now().Sub(receiver.begin)
|
|
|
|
|
|
|
|
msg := fmt.Sprintf(" δt=%s", diff)
|
|
|
|
|
2021-02-10 19:47:48 +00:00
|
|
|
a = append([]interface{}{"END "}, a...)
|
2021-02-10 19:40:40 +00:00
|
|
|
a = append(a, msg)
|
2021-02-10 19:29:47 +00:00
|
|
|
|
|
|
|
receiver.Debug(a...)
|
|
|
|
}
|