{"id":13617252,"url":"https://github.com/symfony/stopwatch","last_synced_at":"2025-05-06T01:20:51.045Z","repository":{"id":5438400,"uuid":"6631182","full_name":"symfony/stopwatch","owner":"symfony","description":"Provides a way to profile code","archived":false,"fork":false,"pushed_at":"2025-02-26T11:03:48.000Z","size":440,"stargazers_count":2813,"open_issues_count":0,"forks_count":15,"subscribers_count":8,"default_branch":"7.2","last_synced_at":"2025-04-30T00:07:09.516Z","etag":null,"topics":["component","php","symfony","symfony-component"],"latest_commit_sha":null,"homepage":"https://symfony.com/stopwatch","language":"PHP","has_issues":false,"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/symfony.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},"funding":{"github":"fabpot","tidelift":"packagist/symfony/symfony","custom":"https://symfony.com/sponsor"}},"created_at":"2012-11-10T19:01:34.000Z","updated_at":"2025-04-26T00:00:22.000Z","dependencies_parsed_at":"2023-01-13T13:32:32.315Z","dependency_job_id":"d687e53b-244e-4e34-8a01-8ff74bd9a4df","html_url":"https://github.com/symfony/stopwatch","commit_stats":{"total_commits":196,"total_committers":54,"mean_commits":"3.6296296296296298","dds":0.7142857142857143,"last_synced_commit":"696f418b0d722a4225e1c3d95489d262971ca924"},"previous_names":[],"tags_count":529,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fstopwatch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fstopwatch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fstopwatch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/symfony%2Fstopwatch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/symfony","download_url":"https://codeload.github.com/symfony/stopwatch/tar.gz/refs/heads/7.2","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252602384,"owners_count":21774754,"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","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":["component","php","symfony","symfony-component"],"created_at":"2024-08-01T20:01:39.091Z","updated_at":"2025-05-06T01:20:51.005Z","avatar_url":"https://github.com/symfony.png","language":"PHP","funding_links":["https://github.com/sponsors/fabpot","https://tidelift.com/funding/github/packagist/symfony/symfony","https://symfony.com/sponsor"],"categories":["PHP"],"sub_categories":[],"readme":"Stopwatch Component\n===================\n\nThe Stopwatch component provides a way to profile code.\n\nGetting Started\n---------------\n\n```bash\ncomposer require symfony/stopwatch\n```\n\n```php\nuse Symfony\\Component\\Stopwatch\\Stopwatch;\n\n$stopwatch = new Stopwatch();\n\n// optionally group events into sections (e.g. phases of the execution)\n$stopwatch-\u003eopenSection();\n\n// starts event named 'eventName'\n$stopwatch-\u003estart('eventName');\n\n// ... run your code here\n\n// optionally, start a new \"lap\" time\n$stopwatch-\u003elap('foo');\n\n// ... run your code here\n\n$event = $stopwatch-\u003estop('eventName');\n\n$stopwatch-\u003estopSection('phase_1');\n```\n\nResources\n---------\n\n * [Contributing](https://symfony.com/doc/current/contributing/index.html)\n * [Report issues](https://github.com/symfony/symfony/issues) and\n   [send Pull Requests](https://github.com/symfony/symfony/pulls)\n   in the [main Symfony repository](https://github.com/symfony/symfony)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Fstopwatch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsymfony%2Fstopwatch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsymfony%2Fstopwatch/lists"}