Mercurial > gemma
changeset 4536:3130c005abef iso-areas
Measure time of triangulation correctly.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 25 Sep 2019 17:28:13 +0200 |
parents | 508075a5694e |
children | e0d04cd8f992 |
files | cmd/isoareas/main.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cmd/isoareas/main.go Wed Sep 25 17:25:49 2019 +0200 +++ b/cmd/isoareas/main.go Wed Sep 25 17:28:13 2019 +0200 @@ -204,7 +204,7 @@ start = time.Now() tri, err := octree.Triangulate(xyz) check(err) - log.Printf("triangulation took %v\n", time.Since(time.Now())) + log.Printf("triangulation took %v\n", time.Since(start)) log.Printf("number of triangles: %d\n", len(tri.Triangles)/3)