sfmc-devtools
sfmc-devtools copied to clipboard
#162: print time it takes to run retrieve/deploy command
PR details
What is the purpose of this pull request? (put an "X" next to an item)
Please delete options that are not relevant.
- [x] Other, please explain:
What changes did you make? (Give an overview)
added 2 functions in util, one to get the time in ms before function and a second one that calculates and prints the time passed between the first function in ms.
Is there anything you'd like reviewers to focus on?
the stopTimer in index.js, is adding a stopTimer before every return the best way?
Checklist
- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
- [x] ESLint & Prettier are not outputting errors or warnings //after removing the warnings and saving, the warnings appear again
There is always the option to have it in index.js or in cli.js - but let's check this out first the way you built it.
not going to use this solution. new PR will be created