You are here

protected function Twig_Profiler_Dumper_Text::formatTime in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Profiler/Dumper/Text.php \Twig_Profiler_Dumper_Text::formatTime()
1 call to Twig_Profiler_Dumper_Text::formatTime()
Twig_Profiler_Dumper_Text::dumpProfile in vendor/twig/twig/lib/Twig/Profiler/Dumper/Text.php
1 method overrides Twig_Profiler_Dumper_Text::formatTime()
Twig_Profiler_Dumper_Html::formatTime in vendor/twig/twig/lib/Twig/Profiler/Dumper/Html.php

File

vendor/twig/twig/lib/Twig/Profiler/Dumper/Text.php, line 34

Class

Twig_Profiler_Dumper_Text
@author Fabien Potencier <fabien@symfony.com>

Code

protected function formatTime(Twig_Profiler_Profile $profile, $percent) {
  return sprintf('%.2fms/%.0f%%', $profile
    ->getDuration() * 1000, $percent);
}