An open API service indexing awesome lists of open source software.

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

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