woocommerce / wc-smooth-generator

Smooth product, customer and order generation for WooCommerce
309 stars 49 forks source link

Add elapsed time measurement and reporting on other CLI commands #112

Closed coreymckrill closed 1 year ago

coreymckrill commented 1 year ago

Besides products.

Changes proposed in this Pull Request:

The wc generate products CLI command outputs the elapsed time when the command finishes. This adds the same functionality to the other generate commands as well. It may not be as necessary for the commands that execute more quickly, but it's nice to have parity, and could still be useful if needing to generate a large number of something.

How to test the changes in this Pull Request:

  1. Try the other CLI commands besides products and make sure they output an elapsed time when they complete.

Measure elapsed time for the orders, customers, and coupons CLI commands.

FOR PR REVIEWER ONLY: