{"id":19450408,"url":"https://github.com/ymc-github/sh-lib-caculate-cost-time","last_synced_at":"2026-05-29T16:31:01.614Z","repository":{"id":95798707,"uuid":"246738836","full_name":"YMC-GitHub/sh-lib-caculate-cost-time","owner":"YMC-GitHub","description":"shell lib caculate cost time","archived":false,"fork":false,"pushed_at":"2020-06-05T14:13:44.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T09:23:45.718Z","etag":null,"topics":["lib","sh","time-cost","ymc"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YMC-GitHub.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-12T03:53:58.000Z","updated_at":"2020-06-05T14:19:46.000Z","dependencies_parsed_at":"2023-04-08T05:02:02.702Z","dependency_job_id":null,"html_url":"https://github.com/YMC-GitHub/sh-lib-caculate-cost-time","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/YMC-GitHub/sh-lib-caculate-cost-time","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-caculate-cost-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-caculate-cost-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-caculate-cost-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-caculate-cost-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YMC-GitHub","download_url":"https://codeload.github.com/YMC-GitHub/sh-lib-caculate-cost-time/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YMC-GitHub%2Fsh-lib-caculate-cost-time/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33662205,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["lib","sh","time-cost","ymc"],"created_at":"2024-11-10T16:37:17.490Z","updated_at":"2026-05-29T16:31:01.599Z","avatar_url":"https://github.com/YMC-GitHub.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sh lib caculate cost time\n\n## desc\n\ncaculate the time you cost\n\n## feat\n\n- support ns\n- support start key\n- support end key\n- support mock\n\n## apis\n\n- [x] cost_get\n- [x] cost_set\n- [x] recordTime\n- [x] caculateTime\n\n```sh\ncat src/index.sh | grep \"function \" | sed \"s/function */- [x] /g\"  | sed \"s/() *{//g\"\n```\n\n## how to use for poduction ?\n\n```sh\n# get the code\n\n# run the index file\n# ./index.sh\n\n# or import to your sh file\n# source /path/to/the/index file\n\n# usage\nrecordTime \"repalceContent\"\nsleep 61\ncaculateTime \"repalceContent\"\n\n:\u003c\u003coutput\nrepalceContent.start:2020-03-23 08:42:39\nrepalceContent.end:2020-03-23 08:43:40\nrepalceContent.cost:1m1s\noutput\n```\n\n## how to use for developer ?\n\n```sh\n# get the code\n\n# run test\n./test.sh\n```\n\n## author\n\nyemiancheng \u003cymc.github@gmail.com\u003e\n\n## license\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fsh-lib-caculate-cost-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fymc-github%2Fsh-lib-caculate-cost-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fymc-github%2Fsh-lib-caculate-cost-time/lists"}