Skip to content

CLI to measure the execution time for a bat file over a period of time

License

Notifications You must be signed in to change notification settings

kanton-aargau/bat-execution-time

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bat-execution-time

🕐 CLI to measure the execution time for a bat file over a period of time

NPM version Dependency Status License Js Standard Style

Installation

$ npm install -g bat-execution-time

Usage

bat-execution-time [batfile] [args]

Options:
  --times, -t   run the tests `t` times                    [number] [default: 1]
  --output, -o  write the results into a json file                      [string]
  -h, --help    Show help                                              [boolean]

Examples

Write directly to stdout:

$ bat-execution-time .\test\fixtures\test.bat -t 5

example

Or write the output to a file:

$ bat-execution-time .\test\fixtures\test.bat -o results.json -t 2
{
  "data": [
    {
      "processTime": 3.217272558,
      "timeOfDay": "16:55:23"
    },
    {
      "processTime": 3.208636087,
      "timeOfDay": "16:55:26"
    }
  ]
}

License

MIT

About

CLI to measure the execution time for a bat file over a period of time

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published