https://github.com/ymc-github/sh-lib-caculate-cost-time
shell lib caculate cost time
https://github.com/ymc-github/sh-lib-caculate-cost-time
lib sh time-cost ymc
Last synced: 19 days ago
JSON representation
shell lib caculate cost time
- Host: GitHub
- URL: https://github.com/ymc-github/sh-lib-caculate-cost-time
- Owner: YMC-GitHub
- License: mit
- Created: 2020-03-12T03:53:58.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-05T14:13:44.000Z (about 6 years ago)
- Last Synced: 2025-02-25T09:23:45.718Z (over 1 year ago)
- Topics: lib, sh, time-cost, ymc
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# sh lib caculate cost time
## desc
caculate the time you cost
## feat
- support ns
- support start key
- support end key
- support mock
## apis
- [x] cost_get
- [x] cost_set
- [x] recordTime
- [x] caculateTime
```sh
cat src/index.sh | grep "function " | sed "s/function */- [x] /g" | sed "s/() *{//g"
```
## how to use for poduction ?
```sh
# get the code
# run the index file
# ./index.sh
# or import to your sh file
# source /path/to/the/index file
# usage
recordTime "repalceContent"
sleep 61
caculateTime "repalceContent"
:<
## license
MIT