{"id":14068119,"url":"https://github.com/yusuzech/timeR","last_synced_at":"2025-07-30T02:33:09.627Z","repository":{"id":56936260,"uuid":"154377664","full_name":"yusuzech/timeR","owner":"yusuzech","description":"A simple R package for timing your code.","archived":false,"fork":false,"pushed_at":"2020-06-22T17:13:55.000Z","size":113,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-09T22:05:19.487Z","etag":null,"topics":["r","timer"],"latest_commit_sha":null,"homepage":"","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yusuzech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-23T18:28:18.000Z","updated_at":"2020-12-02T17:54:44.000Z","dependencies_parsed_at":"2022-08-21T07:20:41.129Z","dependency_job_id":null,"html_url":"https://github.com/yusuzech/timeR","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/yusuzech/timeR","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusuzech%2FtimeR","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusuzech%2FtimeR/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusuzech%2FtimeR/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusuzech%2FtimeR/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yusuzech","download_url":"https://codeload.github.com/yusuzech/timeR/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yusuzech%2FtimeR/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267798625,"owners_count":24145727,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"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":["r","timer"],"created_at":"2024-08-13T07:05:57.533Z","updated_at":"2025-07-30T02:33:09.338Z","avatar_url":"https://github.com/yusuzech.png","language":"R","funding_links":[],"categories":["R"],"sub_categories":[],"readme":"# timeR 1.2.0\n\n[![Travis build status](https://travis-ci.org/yusuzech/timeR.svg?branch=master)](https://travis-ci.org/yusuzech/timeR)\n![](https://cranlogs.r-pkg.org/badges/grand-total/timeR)\n![](https://cranlogs.r-pkg.org/badges/timeR)\n![](https://cranlogs.r-pkg.org/badges/last-day/timeR)\n## A simple package for timing your code.\n\n`timeR` package allows you to create a *timer* object\nto easily time your codes. Meanwhile, all records are saved to a data frame, so it's easy to retrieve all the records for later use.\n\nTiming codes is not difficult but can be very tedious. With `timeR`, you can save your energy on timing and put more effort on \nyour analysis. You can use `timeR` to time training time for machine learning models, record speed for requests when running web-scraping scripts or other situations that you need to keep records of time.\n\n## How to install\n\n```r\ninstall.packages(\"timeR\")\n# or install from github\ndevtools::install_github(\"yusuzech/timeR\")\n```\n\n## Basic Usage\n\n```r\nlibrary(timeR)\n# Create a timer object,precision default to s(second)\nmy_timer \u003c- createTimer()\n\n# start timing for an event\nmy_timer$start(\"event one\")\n\n#start timing for another event\nmy_timer$start(\"event two\")\n\n# stop timing for the events\nmy_timer$stop(\"event one\")\nmy_timer$stop(\"event two\", comment = \"my comment\") # comment is optional\n\n# retrieve the table for all recordings\ngetTimer(my_timer)\n\n# or create a timer object and setting verbose to false and use other precision\n# s(second), ms(millisecond), us(microsecond)\nmy_timer2 \u003c- createTimer(verbose = F,precision = \"ms\")\n\n# toggle on/off verbose\nmy_timer$toggleVerbose()\n\n# warnings will still be shown when verbose is turned off\nmy_timer$stop(\"event one\")\n\n# get attributes of a selected event\nmy_timer$getEvent(\"event one\")\nmy_timer$getStartTime(\"event two\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusuzech%2FtimeR","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyusuzech%2FtimeR","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyusuzech%2FtimeR/lists"}