Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Releases: anglesoft/chrono

php8.0 compatibility

Choose a tag to compare

@benvilliere benvilliere released this 15 Dec 21:33
v1.0.4

php8.0 support

Added the describe method.

Choose a tag to compare

@benvilliere benvilliere released this 12 Mar 19:45

If you are running many benchmarks, it may be a good idea to add a description to them:

Chrono::describe('Query with joints');
Chrono::start();

// Run the query

print Chrono::meter();

Output:

Query with joints | 1.43 seconds (1424 ms)

Warning: if you prefer to use the shorthand benchmark method, make sure to call the describe method within your benchmark:

Chrono::benchmark(function () {
    Chrono::describe('Task');

    // Do your thing
});

You need to do this because all internal values are cleared out upon a new benchmark call.

Added the benchmark method.

Choose a tag to compare

@benvilliere benvilliere released this 11 Mar 23:20

The benchmark method allows a shorthand synthax that I hope will be much appreciated.

Minor change

Choose a tag to compare

@benvilliere benvilliere released this 11 Mar 22:42

Based on feedback from a fellow PHP developer, changed the now() method to simpler microtime(true).

First release

Choose a tag to compare

@benvilliere benvilliere released this 11 Mar 19:31
v1.0.0

Update README.md
Morty Proxy This is a proxified and sanitized view of the page, visit original site.