rocket-pool / treegen

Tool for creating rewards tree and minipool attestation files for rewards intervals on the Rocket Pool network
Apache License 2.0
1 stars 5 forks source link

Native time function? #2

Open superphiz opened 1 year ago

superphiz commented 1 year ago

Could you wrap the treegen in a native time function to let the user know how long the generation took? Bonus points if it gave a report:

Calculating collateral rewards took 20 seconds
Smoothie Pool calculation took 16 minute 40 seconds
The total tree generation time on your i5-12900k took 31 minutes, 9 seconds
jclapis commented 1 year ago

Sure, as a temporary measure you can prefix the call with time, e.g.

time treegen -e ... -b ...

That will run a Linux command that reports how long the whole thing took once it's done.