diff --git a/internal/lsp/cmd/server.go b/internal/lsp/cmd/server.go index 81807abd..ed3b6e0b 100644 --- a/internal/lsp/cmd/server.go +++ b/internal/lsp/cmd/server.go @@ -97,7 +97,8 @@ func (s *server) Run(ctx context.Context, args ...string) error { } fmt.Fprint(outx, "'") if elapsed >= 0 { - fmt.Fprintf(outx, " in %vms", elapsed.Nanoseconds()/1000) + msec := int(elapsed.Round(time.Millisecond) / time.Millisecond) + fmt.Fprintf(outx, " in %dms", msec) } params := string(*payload) if params == "null" {