Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bar execution time implementation #506

Open
wombatinua opened this issue Aug 23, 2021 · 0 comments
Open

Bar execution time implementation #506

wombatinua opened this issue Aug 23, 2021 · 0 comments

Comments

@wombatinua
Copy link

Version: 2.8.6

When I measure my app's execution time with Debugger::timer(); or the following code

$start = $_SERVER['REQUEST_TIME_FLOAT'] ?? microtime(true);
// ...
$end = round(((microtime(true) - $start) * 1000), 2);

I always get execution 1.5 - 2 times (roughly) smaller than shown in Tracy Bar. Why is it so? Does Tracy Bar takes into account network delivery time or something?

Is it possible to access Tracy Bar execution time within my code (if my implementation is not right)?

This is not a bug, but a thing which I appreciate to be explained. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant