You are here

protected function Twig_Profiler_Dumper_Text::formatTime in Translation template extractor 7.3

1 call to Twig_Profiler_Dumper_Text::formatTime()
Twig_Profiler_Dumper_Text::dumpProfile in vendor/Twig/Profiler/Dumper/Text.php
1 method overrides Twig_Profiler_Dumper_Text::formatTime()
Twig_Profiler_Dumper_Html::formatTime in vendor/Twig/Profiler/Dumper/Html.php

File

vendor/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);
}