From e368e1c6e890f6d4290df002e9e2affedce637b2 Mon Sep 17 00:00:00 2001 From: alessio Date: Sat, 20 Aug 2016 15:43:58 +0200 Subject: [PATCH] building time --- realize/watcher.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/realize/watcher.go b/realize/watcher.go index 174eef8..7d8880b 100644 --- a/realize/watcher.go +++ b/realize/watcher.go @@ -127,11 +127,12 @@ func (p *Project) Watching() { func (p *Project) install(channel chan bool,wr *sync.WaitGroup) { if p.Bin { LogSuccess(p.Name + ": Installing..") + start := time.Now() if err := p.GoInstall(); err != nil { Fail(p.Name + ": "+err.Error()) wr.Done() } else { - LogSuccess(p.Name + ": Installed") + LogSuccess(p.Name + ": Installed - "+time.Since(start)) if p.Run { runner := make(chan bool, 1) LogSuccess(p.Name + ": Running..") @@ -153,10 +154,11 @@ func (p *Project) install(channel chan bool,wr *sync.WaitGroup) { func (p *Project) build() { if p.Build { LogSuccess(p.Name + ": Building..") + start := time.Now() if err := p.GoBuild(); err != nil { Fail(p.Name + ": "+err.Error()) } else { - LogSuccess(p.Name + ": Builded") + LogSuccess(p.Name + ": Builded - "+time.Since(start)) } return }