Skip to content

Easily time functions with a closure. #43

@dav-m85

Description

@dav-m85

An idea I find interesting, found on https://github.com/thephpleague/statsd:

$statsd->time('api.dbcall', function () {
    // this code execution will be timed and recorded in ms
});

Would be nice to implement here :)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions