diff --git a/cmd/restic/cmd_restore.go b/cmd/restic/cmd_restore.go index cbab2bed4..0ece13e5f 100644 --- a/cmd/restic/cmd_restore.go +++ b/cmd/restic/cmd_restore.go @@ -2,6 +2,7 @@ package main import ( "strings" + "time" "github.com/restic/restic/internal/debug" "github.com/restic/restic/internal/errors" @@ -202,6 +203,7 @@ func runRestore(opts RestoreOptions, gopts GlobalOptions, args []string) error { if opts.Verify { Verbosef("verifying files in %s\n", opts.Target) var count int + t0 := time.Now() count, err = res.VerifyFiles(ctx, opts.Target) if err != nil { return err @@ -209,7 +211,8 @@ func runRestore(opts RestoreOptions, gopts GlobalOptions, args []string) error { if totalErrors > 0 { return errors.Fatalf("There were %d errors\n", totalErrors) } - Verbosef("finished verifying %d files in %s\n", count, opts.Target) + Verbosef("finished verifying %d files in %s (took %s)\n", count, opts.Target, + time.Since(t0).Round(time.Millisecond)) } return nil