You are here

function smarty_core_get_microtime in Quiz 6.6

Same name and namespace in other branches
  1. 6.5 includes/moodle/lib/smarty/core/core.get_microtime.php \smarty_core_get_microtime()

Get seconds and microseconds

Return value

double

5 calls to smarty_core_get_microtime()
Smarty::fetch in includes/moodle/lib/smarty/Smarty.class.php
executes & returns or displays the template results
Smarty::_smarty_include in includes/moodle/lib/smarty/Smarty.class.php
smarty_core_process_cached_inserts in includes/moodle/lib/smarty/core/core.process_cached_inserts.php
Replace cached inserts with the actual results
smarty_core_run_insert_handler in includes/moodle/lib/smarty/core/core.run_insert_handler.php
Handle insert tags
smarty_function_config_load in includes/moodle/lib/smarty/plugins/function.config_load.php
Smarty {config_load} function plugin

File

includes/moodle/lib/smarty/core/core.get_microtime.php, line 12

Code

function smarty_core_get_microtime($params, &$smarty) {
  $mtime = microtime();
  $mtime = explode(" ", $mtime);
  $mtime = (double) $mtime[1] + (double) $mtime[0];
  return $mtime;
}