{"id":27551012,"url":"https://github.com/cleysondiego/timetracker","last_synced_at":"2026-05-15T12:02:21.337Z","repository":{"id":288127286,"uuid":"964129187","full_name":"cleysondiego/TimeTracker","owner":"cleysondiego","description":"⏱️ A lightweight SDK to measure how long the piece of code takes to run","archived":false,"fork":false,"pushed_at":"2025-04-15T17:03:04.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-19T13:59:26.496Z","etag":null,"topics":["android","android-library","kotlin","kotlin-android","sdk","sdk-android"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/cleysondiego.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-04-10T18:24:26.000Z","updated_at":"2025-04-15T17:03:09.000Z","dependencies_parsed_at":"2025-04-15T18:22:17.092Z","dependency_job_id":"b17ba00c-9178-48a8-a0c4-c0a8460403b4","html_url":"https://github.com/cleysondiego/TimeTracker","commit_stats":null,"previous_names":["cleysondiego/timetracker"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cleysondiego/TimeTracker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleysondiego%2FTimeTracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleysondiego%2FTimeTracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleysondiego%2FTimeTracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleysondiego%2FTimeTracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cleysondiego","download_url":"https://codeload.github.com/cleysondiego/TimeTracker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cleysondiego%2FTimeTracker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274130025,"owners_count":25227269,"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-09-08T02:00:09.813Z","response_time":121,"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":["android","android-library","kotlin","kotlin-android","sdk","sdk-android"],"created_at":"2025-04-19T07:51:32.467Z","updated_at":"2026-05-15T12:02:21.291Z","avatar_url":"https://github.com/cleysondiego.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ⏱️ TimeTracker\n\n**TimeTracker** is a simple and efficient Kotlin-based SDK for tracking the execution time of code blocks in Android applications. It’s a helpful tool for developers who want to measure performance, analyze bottlenecks, or monitor runtime behavior during development and debugging.\n\n---\n\n## 🚀 Features\n\n- 🔹 Measure start-to-finish execution time for labeled tasks  \n- 🔹 Easy-to-use API with minimal setup  \n- 🔹 Toggle tracking on/off globally  \n- 🔹 Fully customizable logger output\n\n---\n\n## 📦 Installation\n\n### Step 1: Add JitPack to your project\n\nIn your root `settings.gradle.kts` or `build.gradle.kts` file:\n\n```kotlin\ndependencyResolutionManagement {\n    repositories {\n        google()\n        mavenCentral()\n        maven(\"https://jitpack.io\")\n    }\n}\n```\n\n### Step 2: Add the dependency\n\nIn your app-level `build.gradle.kts`:\n\n```kotlin\ndependencies {\n    implementation(\"com.github.cleysondiego:TimeTracker:\u003clatest-version\u003e\")\n}\n```\n\nReplace `\u003clatest-version\u003e` with the latest [GitHub tag](https://github.com/cleysondiego/TimeTracker/tags).\n\n---\n\n## 🧪 Usage\n\n```kotlin\n// Enable or disable tracking globally\nTimeTracker.isEnabled = true\n\n// Optionally set a custom logger\nTimeTracker.logger = { tag, message -\u003e\n    Log.d(tag, message)\n}\n\n// Measure how long the screen takes to set up\nTimeTracker.measure(\"MainScreenSetup\") {\n    setContent {\n        TimeTrackerDemoAppTheme {\n            Scaffold(modifier = Modifier.fillMaxSize()) { innerPadding -\u003e\n                Greeting(\n                    name = \"Compose\",\n                    modifier = Modifier.padding(innerPadding)\n                )\n            }\n        }\n    }\n}\n\n// An alternative way\n// Start tracking a labeled operation\nTimeTracker.start(\"loadData\")\n\n// Your code block here...\n\n// Stop tracking and log the elapsed time\nTimeTracker.stop(\"loadData\")\n```\n\nOutput:\n```\n[TimeTracker] MainScreenSetup executed in 2354ms\n[TimeTracker] loadData executed in 215ms\n```\n\n---\n\n## 📚 Background\n\nThis SDK was originally created as a part of an exploration in Android SDK development. The structure and publication process of this library follow the steps described in [this excellent guide on creating and publishing Android SDKs](https://proandroiddev.com/creating-and-publishing-an-android-sdk-a-simple-step-by-step-guide-that-actually-works-3cf3a205f1e4) by Anatolii Frolov.\n\n---\n\n## 📝 License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n---\n\nFeel free to contribute, open issues, or suggest improvements!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleysondiego%2Ftimetracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcleysondiego%2Ftimetracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcleysondiego%2Ftimetracker/lists"}