text_formatter: move relative time logic from entry

This commit is contained in:
Simon Eskildsen
2014-05-03 20:43:55 -04:00
parent 11a9ddab08
commit 13600d2325
2 changed files with 9 additions and 8 deletions
-8
View File
@@ -15,14 +15,6 @@ type Entry struct {
var baseTimestamp time.Time
func init() {
baseTimestamp = time.Now()
}
func miniTS() int {
return int(time.Since(baseTimestamp) / time.Second)
}
func NewEntry(logger *Logger) *Entry {
return &Entry{
Logger: logger,