Blame view

libs/SMARTY/internals/core.get_microtime.php 360 Bytes
42868d70   andryeyev   Создал GIT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  <?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: */
  
  ?>