function boost_get_generation_time in Boost 6
Returns the time it took to generate this cached page.
Parameters
$filename: Name of cached file
1 call to boost_get_generation_time()
- boost_block in ./
boost.module - Implementation of hook_block().
File
- ./
boost.module, line 4568 - Provides static file caching for Drupal text output. Pages, Feeds, ect...
Code
function boost_get_generation_time($filename) {
$boost_db = boost_get_db($filename);
return $boost_db['timer'] != 0 ? $boost_db['timer'] / 1000.0 : FALSE;
}