You are here

core.get_microtime.php in Quiz 6.5

Same filename and directory in other branches
  1. 6.6 includes/moodle/lib/smarty/core/core.get_microtime.php

File

includes/moodle/lib/smarty/core/core.get_microtime.php
View source
<?php

/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */

/**
 * Get seconds and microseconds
 * @return double
 */
function smarty_core_get_microtime($params, &$smarty) {
  $mtime = microtime();
  $mtime = explode(" ", $mtime);
  $mtime = (double) $mtime[1] + (double) $mtime[0];
  return $mtime;
}

/* vim: set expandtab: */

Functions

Namesort descending Description
smarty_core_get_microtime Get seconds and microseconds