PageRenderTime 1193ms queryTime 441ms sortTime 10ms getByIdsTime 199ms findMatchingLines 411ms

100+ results results for 'php microtime' (1193 ms)

Not the results you expected?
init.php https://gitlab.com/mattswann/launch-housing | PHP | 368 lines
                    
1<?php
                    
2
                    
2
                    
3// DO NOT CALL THIS CLASS DIRECTLY. CALL VIA: pb_backupbuddy_destination in bootstrap.php.
                    
4
                    
24		'url'			=>		'',		// optional url for migration that corresponds to this ftp/path.
                    
25		'disable_file_management'	=>		'0',		// When 1, _manage.php will not load which renders remote file management DISABLED.
                    
26		'disabled'					=>		'0',		// When 1, disable this destination.
                    
82			} else {
                    
83				pb_backupbuddy::status( 'details',  'Your web server doesnt support FTPS in PHP.', 'error' );
                    
84				return false;
                    
95			} else {
                    
96				pb_backupbuddy::status( 'details',  'Your web server doesnt support FTP in PHP.', 'error' );
                    
97				return false;
                    
137			if ( ! file_exists( $file ) ) {
                    
138				pb_backupbuddy::status( 'error', 'Error #859485495. Could not upload local file `' . $file . '` to send to FTP as it does not exist. Verify the file exists, permissions of file, parent directory, and that ownership is correct. You may need suphp installed on the server.' );
                    
139			}
                    
                
StatementPrefetch.php https://gitlab.com/reasonat/test8 | PHP | 537 lines
                    
1<?php
                    
2
                    
153    if (!empty($logger)) {
                    
154      $query_start = microtime(TRUE);
                    
155    }
                    
187    if (!empty($logger)) {
                    
188      $query_end = microtime(TRUE);
                    
189      $logger->log($this, $args, $query_end - $query_start);
                    
464    $result = array();
                    
465    // Traverse the array as PHP would have done.
                    
466    while (isset($this->currentRow)) {
                    
483      $result = array();
                    
484      // Traverse the array as PHP would have done.
                    
485      while (isset($this->currentRow)) {
                    
506    $result = array();
                    
507    // Traverse the array as PHP would have done.
                    
508    while (isset($this->currentRow)) {
                    
                
Store.php https://gitlab.com/susmitha.plts/photographer_portfolio | PHP | 707 lines
                    
1<?php
                    
2
                    
196    {
                    
197        return sha1(uniqid('', true).Str::random(25).microtime(true));
                    
198    }
                    
                
NetClient.php https://gitlab.com/wuhang2003/rainloop-webmail | PHP | 629 lines
                    
1<?php
                    
2
                    
187	 */
                    
188	public function capturePhpErrorWithException($iErrNo, $sErrStr, $sErrFile, $iErrLine)
                    
189	{
                    
247
                    
248		$this->iStartConnectTime = \microtime(true);
                    
249		$this->writeLog('Start connection to "'.$this->sConnectedHost.':'.$this->iConnectedPort.'"',
                    
270
                    
271		\set_error_handler(array(&$this, 'capturePhpErrorWithException'));
                    
272
                    
297
                    
298		$this->writeLog((\microtime(true) - $this->iStartConnectTime).' (raw connection)',
                    
299			\MailSo\Log\Enumerations\Type::TIME);
                    
348			{
                    
349				$this->writeLog((\microtime(true) - $this->iStartConnectTime).' (net session)',
                    
350					\MailSo\Log\Enumerations\Type::TIME);
                    
                
Ntp.php https://github.com/Exercise/zf2.git | PHP | 434 lines
                    
1<?php
                    
2/**
                    
71    {
                    
72        $frac   = microtime();
                    
73        $fracba = ($frac & 0xff000000) >> 24;
                    
229            'transmitstamp'  => $this->_getTimestamp(fread($this->_socket, 8)),
                    
230            'clientreceived' => microtime(true)
                    
231        );
                    
                
DatabaseBackend.php https://gitlab.com/geeta7/drupal | PHP | 485 lines
                    
1<?php
                    
2
                    
209        'expire' => $item['expire'],
                    
210        'created' => round(microtime(TRUE), 3),
                    
211        'tags' => implode(' ', $item['tags']),
                    
                
DebugBar.php https://gitlab.com/heruujoko/ilearnman | PHP | 468 lines
                    
1<?php
                    
2/*
                    
46
                    
47    protected $stackSessionNamespace = 'PHPDEBUGBAR_STACK_DATA';
                    
48
                    
183     *
                    
184     * If no http driver where defined, a PhpHttpDriver is automatically created
                    
185     *
                    
190        if ($this->httpDriver === null) {
                    
191            $this->httpDriver = new PhpHttpDriver();
                    
192        }
                    
206                'datetime' => date('Y-m-d H:i:s'),
                    
207                'utime' => microtime(true),
                    
208                'method' => isset($_SERVER['REQUEST_METHOD']) ? $_SERVER['REQUEST_METHOD'] : null,
                    
253     */
                    
254    public function getDataAsHeaders($headerName = 'phpdebugbar', $maxHeaderLength = 4096, $maxTotalHeaderLength = 250000)
                    
255    {
                    
                
mediaaccess.php https://gitlab.com/thisishayat/itv-2016 | PHP | 414 lines
                    
1<?php
                    
2
                    
96	{
                    
97		return substr(md5(microtime() . rand()), rand(0,25), 6);
                    
98	}
                    
203		
                    
204		return 'media-upload.php?post_id=' . $post_ID . '&tab=' . $tab . '&TB_iframe=1';
                    
205	}
                    
308
                    
309		$file = basename(parse_url($uri, PHP_URL_PATH));
                    
310
                    
310
                    
311		if ($uri AND in_array($file, array('post.php', 'post-new.php')))
                    
312		{
                    
367
                    
368						$('[class*="<?php echo $this->button_class_name; ?>"]').on('click', function()
                    
369						{
                    
                
linkchecker.php https://gitlab.com/dkiller1/rapidleech | PHP | 234 lines
                    
1<?php
                    
2if (!defined('RAPIDLEECH')) {
                    
2if (!defined('RAPIDLEECH')) {
                    
3	require('../deny.php');
                    
4	exit;
                    
9//Lets calulate the time required.
                    
10$time = explode(' ', microtime());
                    
11$time = $time[1] + $time[0];
                    
14$debug = 0; // change it to one to enable it.
                    
15//Override PHP's stardard time limit
                    
16set_time_limit(120);
                    
205
                    
206// Load /classes/http.php or paste the function?...
                    
207function GetCookiesArr($content, $cookie=array(), $del=true, $dval=array('','deleted')) {
                    
227		echo "<b>".lang(118)."</b><br />";
                    
228	if( PHP_VERSION < 5 ){
                    
229		echo lang(119)."<br />";
                    
                
LBFactory.php https://gitlab.com/link233/bootmw | PHP | 481 lines
                    
1<?php
                    
2/**
                    
220
                    
221		$start = microtime( true );
                    
222		$this->forEachLBCallMethod( 'commitAll', [ $fname ] );
                    
222		$this->forEachLBCallMethod( 'commitAll', [ $fname ] );
                    
223		$timeMs = 1000 * ( microtime( true ) - $start );
                    
224
                    
432		);
                    
433		if ( PHP_SAPI === 'cli' ) {
                    
434			$chronProt->setEnabled( false );
                    
                
test.php https://bitbucket.org/astawiarski/openemr.git | PHP | 422 lines
                    
1<?php
                    
2$debug=1;
                    
2$debug=1;
                    
3require_once("gacl_admin.inc.php");
                    
4
                    
146/*
                    
147//require_once('../Cache_Lite.php');
                    
148require_once('./profiler.inc');
                    
152    'caching' => true,
                    
153    'cacheDir' => '/tmp/phpgacl_cache',
                    
154    'lifeTime' => 100
                    
217//Seed random. 
                    
218srand ((float) microtime() * 10000000);
                    
219
                    
306//Seed random. 
                    
307srand ((float) microtime() * 10000000);
                    
308
                    
                
mysql.php https://gitlab.com/nacridan/Nacridan | PHP | 372 lines
                    
1<?php
                    
2
                    
10if (!function_exists('mysql_connect'))
                    
11	exit('This PHP environment doesn\'t have MySQL support built in. MySQL support is required if you want to use a MySQL database to run this forum. Consult the PHP documentation for further assistance.');
                    
12
                    
70		if (defined('PUN_SHOW_QUERIES'))
                    
71			$q_start = get_microtime();
                    
72
                    
80			if (defined('PUN_SHOW_QUERIES'))
                    
81				$this->saved_queries[] = array($sql, sprintf('%.5f', get_microtime() - $q_start));
                    
82
                    
                
List.php https://gitlab.com/LisovyiEvhenii/ismextensions | PHP | 271 lines
                    
1<?php
                    
2/**
                    
9 * It is also available through the world-wide-web at this URL:
                    
10 * http://opensource.org/licenses/osl-3.0.php
                    
11 * If you did not receive a copy of the license and are unable to
                    
23 * @copyright  Copyright (c) 2006-2016 X.commerce, Inc. and affiliates (http://www.magento.com)
                    
24 * @license    http://opensource.org/licenses/osl-3.0.php  Open Software License (OSL 3.0)
                    
25 */
                    
182        }
                    
183        $block = $this->getLayout()->createBlock($this->_defaultToolbarBlock, microtime());
                    
184        return $block;
                    
                
wp-background-process.php https://gitlab.com/campus-academy/krowkaramel | PHP | 503 lines
                    
1<?php // @codingStandardsIgnoreLine.
                    
2/**
                    
138	 *
                    
139	 * Generates a unique key based on microtime. Queue items are
                    
140	 * given a unique key so that they can be merged upon save.
                    
146	protected function generate_key( $length = 64 ) {
                    
147		$unique  = md5( microtime() . rand() );
                    
148		$prepend = $this->identifier . '_batch_';
                    
234
                    
235		set_site_transient( $this->identifier . '_process_lock', microtime(), $lock_duration );
                    
236	}
                    
                
Word.php https://bitbucket.org/kdms/sh-magento.git | PHP | 418 lines
                    
1<?php
                    
2/**
                    
22/** @see Zend_Captcha_Base */
                    
23#require_once 'Zend/Captcha/Base.php';
                    
24
                    
34 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
35 * @version    $Id: Word.php 21793 2010-04-08 00:51:31Z stas $
                    
36 */
                    
263            if (!class_exists($this->_sessionClass)) {
                    
264                #require_once 'Zend/Loader.php';
                    
265                Zend_Loader::loadClass($this->_sessionClass);
                    
361    {
                    
362        return md5(mt_rand(0, 1000) . microtime(true));
                    
363    }
                    
                
Bouncer.php git://github.com/znarf/Bouncer.git | PHP | 645 lines
                    
1<?php
                    
2
                    
375
                    
376        $this->addContext('time', microtime(true));
                    
377
                    
407        // Measure execution time
                    
408        $execution_time = microtime(true) - $context['time'];
                    
409        if (!empty($context['bouncer']['throttle_time'])) {
                    
560        else {
                    
561            // $this->error('No exit callable set. PHP exit construct will be used.');
                    
562            exit;
                    
                
03formulas.php https://gitlab.com/Zinnurain/destination_finder_beta | PHP | 149 lines
                    
33
                    
34define('EOL',(PHP_SAPI == 'cli') ? PHP_EOL : '<br />');
                    
35
                    
36/** Include PHPExcel */
                    
37require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
                    
38
                    
41echo date('H:i:s') , " Create new PHPExcel object" , EOL;
                    
42$objPHPExcel = new PHPExcel();
                    
43
                    
108
                    
109$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
                    
110
                    
132
                    
133$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
                    
134$objWriter->save(str_replace('.php', '.xls', __FILE__));
                    
                
PhpBackend.php https://gitlab.com/reasonat/test8 | PHP | 271 lines
                    
4
                    
5use Drupal\Core\PhpStorage\PhpStorageFactory;
                    
6use Drupal\Component\Utility\Crypt;
                    
11 * Stores cache items in a PHP file using a storage that implements
                    
12 * Drupal\Component\PhpStorage\PhpStorageInterface.
                    
13 *
                    
13 *
                    
14 * This is fast because of PHP's opcode caching mechanism. Once a file's
                    
15 * content is stored in PHP's opcode cache, including it doesn't require
                    
20 */
                    
21class PhpBackend implements CacheBackendInterface {
                    
22
                    
248   *
                    
249   * @return \Drupal\Component\PhpStorage\PhpStorageInterface
                    
250   */
                    
                
Array.php https://github.com/skoop/Gesichtbuch.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 6352 2010-08-16 15:02:45Z tpater $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            // require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
                
Version.php https://github.com/psycha/symfony-sandbox.git | PHP | 326 lines
                    
1<?php
                    
2/*
                    
30 *
                    
31 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
32 * @link        www.doctrine-project.org
                    
216        try {
                    
217            $start = microtime(true);
                    
218
                    
260
                    
261            $end = microtime(true);
                    
262            $this->_time = round($end - $start, 2);
                    
                
Mandrill.php https://gitlab.com/x33n/platform | PHP | 118 lines
                    
1<?php
                    
2class Mandrill {
                    
28        $this->ch = curl_init();
                    
29        curl_setopt($this->ch, CURLOPT_USERAGENT, 'like Mandrill-PHP/1.0.18');
                    
30        curl_setopt($this->ch, CURLOPT_POST, true);
                    
53
                    
54        $start = microtime(true);
                    
55        $this->log('Call to ' . $this->root . $url . '.json: ' . $params);
                    
56        if($this->debug) {
                    
57            $curl_buffer = fopen('php://memory', 'w+');
                    
58            curl_setopt($ch, CURLOPT_STDERR, $curl_buffer);
                    
62        $info = curl_getinfo($ch);
                    
63        $time = microtime(true) - $start;
                    
64        if($this->debug) {
                    
                
Mandrill.php https://gitlab.com/urbanjunglestudio/movidly_admin | PHP | 161 lines
                    
1<?php
                    
2
                    
2
                    
3require_once 'Mandrill/Templates.php';
                    
4require_once 'Mandrill/Exports.php';
                    
4require_once 'Mandrill/Exports.php';
                    
5require_once 'Mandrill/Users.php';
                    
6require_once 'Mandrill/Rejects.php';
                    
6require_once 'Mandrill/Rejects.php';
                    
7require_once 'Mandrill/Inbound.php';
                    
8require_once 'Mandrill/Tags.php';
                    
8require_once 'Mandrill/Tags.php';
                    
9require_once 'Mandrill/Messages.php';
                    
10require_once 'Mandrill/Whitelists.php';
                    
10require_once 'Mandrill/Whitelists.php';
                    
11require_once 'Mandrill/Ips.php';
                    
12require_once 'Mandrill/Internal.php';
                    
                
captcha_pi.php https://github.com/ComputerScienceHouse/Electronic-Evals.git | PHP | 356 lines
                    
1<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP 4.3.2 or newer
                    
6 *
                    
66	'image' => IMAGE TAG
                    
67	'time'	=> TIMESTAMP (in microtime)
                    
68	'word'	=> CAPTCHA WORD
                    
196			
                    
197	list($usec, $sec) = explode(" ", microtime());
                    
198	$now = ((float)$usec + (float)$sec);
                    
246			
                    
247	// PHP.net recommends imagecreatetruecolor(), but it isn't always available
                    
248	if (function_exists('imagecreatetruecolor'))
                    
354
                    
355/* End of file captcha_pi.php */
                    
356/* Location: ./system/plugins/captcha_pi.php */
                    
                
Dispatcher.php https://gitlab.com/isdzulqor/Slis-Dev | PHP | 201 lines
                    
1<?php
                    
2/**
                    
23 *
                    
24 * ```php
                    
25 * [
                    
48 *
                    
49 * ```php
                    
50 * Yii::$app->log->targets['file']->enabled = false;
                    
189                        __METHOD__,
                    
190                        microtime(true),
                    
191                        [],
                    
                
PasswordHash.php https://github.com/dkobia/Garden.git | PHP | 248 lines
                    
1<?php
                    
2#
                    
2#
                    
3# Portable PHP password hashing framework.
                    
4#
                    
13#
                    
14#	http://www.openwall.com/phpass/
                    
15#
                    
42
                    
43		$this->random_state = microtime() . getmypid();
                    
44	}
                    
57				$this->random_state =
                    
58				    md5(microtime() . $this->random_state);
                    
59				$output .=
                    
94		$output .= $this->itoa64[min($this->iteration_count_log2 +
                    
95			((PHP_VERSION >= '5') ? 5 : 3), 30)];
                    
96		$output .= $this->encode64($input, 6);
                    
                
Array.php https://github.com/FranckErnewein/citron.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 20096 2010-01-06 02:05:09Z bkarwin $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            // require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
                
FormId.php https://github.com/inhale/core.git | PHP | 279 lines
                    
1<?php
                    
2// vim: set ts=4 sw=4 sts=4 et:
                    
11 * It is also available through the world-wide-web at this URL:
                    
12 * http://opensource.org/licenses/osl-3.0.php
                    
13 * If you did not receive a copy of the license and are unable to
                    
21 * @copyright  Copyright (c) 2011 Creative Development LLC <info@cdev.ru>. All rights reserved
                    
22 * @license    http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
                    
23 * @version    GIT: $Id: ffc629a906cf257f7995c51ed1a1de93d91a03b8 $
                    
156        do {
                    
157            mt_srand(microtime(true) * 1000);
                    
158            $id = '';
                    
                
Array.php https://github.com/robeendey/ce.git | PHP | 354 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 18701 2009-10-26 13:03:47Z matthew $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            // require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
                
Fishing.php https://gitlab.com/Skull3x/Plugins | PHP | 367 lines
                    
1<?php
                    
2// This Plugin is Made by DeBe (hu6677@naver.com)
                    
224		if(!isset($this->cool[$n])) $this->cool[$n] = 0;
                    
225		$c = microtime(true) - $this->cool[$n];
                    
226		if($this->cool[$n] == -1){
                    
251	public function fishGive($p){
                    
252		$this->cool[$p->getName()] = microtime(true) + $this->set->get("Cool");
                    
253		$i = $this->getFish();
                    
                
srai_lookup.php https://gitlab.com/tutaalexandr/bot_local | PHP | 160 lines
                    
1<?php
                    
2  /***************************************
                    
5    * Version: 2.4.8
                    
6    * FILE: srai_lookup.php
                    
7    * AUTHOR: Elizabeth Perreau and Dave Morton
                    
14  $form_vars = array_merge((array)$post_vars, (array)$get_vars);
                    
15  //exit('Form vars:<pre>' . PHP_EOL . print_r($form_vars, true));
                    
16  $action = (isset($form_vars['action'])) ? $form_vars['action'] : '';
                    
45  $countSTH = $dbConn->prepare($countSQL);
                    
46  /** @noinspection PhpUndefinedVariableInspection */
                    
47  $countSTH->bindValue(':bot_id', $bot_id, PDO::PARAM_INT);
                    
65  $msg = '';
                    
66  $timeStart = microtime(true);
                    
67  // Drop the index on the table srai_lookup to speed things up
                    
79  $searchSQL = "select id, bot_id, template from aiml where template like '%<srai>%' order by id asc;";
                    
80  $es = microtime(true);
                    
81  $searchSTH = $dbConn->prepare($searchSQL);
                    
                
featured.php https://github.com/eosc/EosC-2.3.git | PHP | 153 lines
                    
1<?php
                    
2/*
                    
18<!-- featured_products //-->
                    
19<?php
                    
20if(FEATURED_PRODUCTS_DISPLAY == 'true')
                    
44
                    
45list($usec, $sec) = explode(' ', microtime());
                    
46srand( (float) $sec + ((float) $usec * 100000) );
                    
                
AbstractSessionArrayStorage.php https://gitlab.com/jalon/doadoronline | PHP | 487 lines
                    
1<?php
                    
2/**
                    
55        $_SESSION = $input;
                    
56        $this->setRequestAccessTime(microtime(true));
                    
57    }
                    
                
class-phpass.php https://gitlab.com/campus-academy/krowkaramel | PHP | 250 lines
                    
6 * @version 0.5 / WordPress
                    
7 * @link https://www.openwall.com/phpass/
                    
8 */
                    
10#
                    
11# Portable PHP password hashing framework.
                    
12#
                    
36/**
                    
37 * Portable PHP password hashing framework.
                    
38 *
                    
40 * @version 0.5 / WordPress
                    
41 * @link https://www.openwall.com/phpass/
                    
42 * @since 2.5.0
                    
147		# cryptographic primitive that was available in all versions
                    
148		# of PHP in use.  To implement our own low-level crypto in PHP
                    
149		# would have resulted in much worse performance and
                    
                
mssql.php https://gitlab.com/bulwye/reliquerunt | PHP | 418 lines
                    
1<?php
                    
2/***************************************************************************
                    
2/***************************************************************************
                    
3 *                                 mssql.php
                    
4 *                            -------------------
                    
5 *   begin                : Saturday, Feb 13, 2001
                    
6 *   copyright            : (C) 2001 The phpBB Group
                    
7 *   email                : supportphpbb.com
                    
8 *
                    
9 *   $Id: mssql.php,v 1.22.2.4 2006/03/09 19:57:37 grahamje Exp $
                    
10 *
                    
155				{
                    
156					$this->result = time() + microtime();
                    
157
                    
172				{
                    
173					$this->result = time() + microtime();
                    
174
                    
                
Profiler.php https://gitlab.com/php.bjoernbartels.earth/profiler | PHP | 569 lines
                    
110    /**
                    
111     * get php's 'real' memory usage
                    
112     * 
                    
191    /**
                    
192     * retrieve memory usage from system/php
                    
193     * 
                    
195     * @return integer
                    
196     * @see    http://php.net/manual/de/function.memory-get-usage.php
                    
197     */
                    
221     * @return Profiler
                    
222     * @see    http://php.net/manual/de/function.memory-get-usage.php
                    
223     */
                    
234     * @return boolean
                    
235     * @see    http://php.net/manual/de/function.memory-get-usage.php
                    
236     */
                    
                
init.php https://gitlab.com/mattswann/launch-housing | PHP | 257 lines
                    
1<?php
                    
2
                    
49		
                    
50		self::$_timeStart = microtime( true );
                    
51		
                    
59		
                    
60		require_once( pb_backupbuddy::plugin_path() . '/classes/remote_api.php' );
                    
61		
                    
121			$isFileTest = false;
                    
122			if ( false !== stristr( basename( $file ), 'remote-send-test.php' ) ) {
                    
123				$isFileTest = true;
                    
169			if ( true === $dataRemains ) { // More data remains so see if we need to consider chunking to a new PHP process.
                    
170				// If we are within X second of reaching maximum PHP runtime then stop here so that it can be picked up in another PHP process...
                    
171				if ( ( ( microtime( true ) - self::$_timeStart ) + self::TIME_WIGGLE_ROOM ) >= $settings['max_time'] ) {
                    
171				if ( ( ( microtime( true ) - self::$_timeStart ) + self::TIME_WIGGLE_ROOM ) >= $settings['max_time'] ) {
                    
172					pb_backupbuddy::status( 'message', 'Approaching limit of available PHP chunking time of `' . $settings['max_time'] . '` sec. Ran for ' . round( microtime( true ) - self::$_timeStart, 3 ) . ' sec. Proceeding to use chunking.' );
                    
173					@fclose( $fs );
                    
                
Heuristics.php https://gitlab.com/mrceperka/mi-paa | PHP | 598 lines
                    
1<?php
                    
2namespace MrCeperka\MIPAA\Heuristics;
                    
3
                    
4require_once 'Helpers.php';
                    
5
                    
30	{
                    
31		$start = microtime(true);
                    
32		$pairs = $this->beforeCompute();
                    
33		$r = $this->compute($pairs);
                    
34		$end = microtime(true) - $start;
                    
35		$end *= 1000 * 1000;
                    
398			
                    
399			/*echo 'maxPrice: ' . $maxPrice . PHP_EOL;
                    
400			echo 'bits: ' . $b . PHP_EOL;
                    
400			echo 'bits: ' . $b . PHP_EOL;
                    
401			echo 'me:' . $maxError . PHP_EOL;*/
                    
402		}
                    
                
func.php https://gitlab.com/Oasisnejeb/yml_helper_for_cs-cart | PHP | 132 lines
                    
1<?php
                    
2
                    
11function fn_yml_helper_check_products () {
                    
12	$start = microtime(true);
                    
13	$options = Registry::get('addons.yml_helper');
                    
123	if ($disable_disabled) db_query("UPDATE ?:products SET ?u WHERE status = ?s", $deny_product, 'D');
                    
124	fn_print_r('Время выполнения : '.(microtime(true) - $start).' сек.');
                    
125}
                    
                
minifyTextarea.php https://gitlab.com/flyhope/Hiblog | PHP | 186 lines
                    
1<?php
                    
2die('Disabled: use this only for testing');
                    
3
                    
4require __DIR__ . '/../../bootstrap.php';
                    
5
                    
16if (isset($_POST['textIn'])) {
                    
17    require '../config.php';
                    
18    $textIn = str_replace("\r\n", "\n", getPost('textIn'));
                    
40    $source = new Minify_Source($sourceSpec);
                    
41    Minify_Logger::setLogger(FirePHP::getInstance(true));
                    
42
                    
71    $tpl['inBytes'] = strlen($textIn);
                    
72    $startTime = microtime(true);
                    
73    try {
                    
79    }
                    
80    $tpl['time'] = microtime(true) - $startTime;
                    
81    $tpl['outBytes'] = strlen($tpl['output']);
                    
                
Version.php https://github.com/l3l0/BehatExamples.git | PHP | 347 lines
                    
1<?php
                    
2/*
                    
28 *
                    
29 * @license     http://www.opensource.org/licenses/lgpl-license.php LGPL
                    
30 * @link        www.doctrine-project.org
                    
231        try {
                    
232            $start = microtime(true);
                    
233
                    
279
                    
280            $end = microtime(true);
                    
281            $this->time = round($end - $start, 2);
                    
                
wrapper.php https://gitlab.com/webkod3r/tripolis | PHP | 213 lines
                    
1<?php
                    
2
                    
18
                    
19function akismet_microtime() {
                    
20	return Akismet::_get_microtime();
                    
                
Mailer.php https://gitlab.com/VTTE/sitios-vtte | PHP | 460 lines
                    
1<?php
                    
2
                    
39	 *
                    
40	 * @param \WPMailSMTP\MailCatcher $phpmailer
                    
41	 */
                    
41	 */
                    
42	public function __construct( $phpmailer ) {
                    
43
                    
43
                    
44		// We want to prefill everything from \WPMailSMTP\MailCatcher class, which extends \PHPMailer.
                    
45		parent::__construct( $phpmailer );
                    
195					'content'  => $content_value,
                    
196					'charset'  => $this->phpmailer->CharSet,
                    
197					'encoding' => $this->phpmailer->Encoding,
                    
203
                    
204			if ( $this->phpmailer->ContentType === 'text/plain' ) {
                    
205				$content_type = 'text/plain';
                    
                
Log.php https://gitlab.com/ReneMC/Codeigniter-static | PHP | 247 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
119		$this->_file_ext = (isset($config['log_file_extension']) && $config['log_file_extension'] !== '')
                    
120			? ltrim($config['log_file_extension'], '.') : 'php';
                    
121
                    
181			$newfile = TRUE;
                    
182			// Only add protection to php files
                    
183			if ($this->_file_ext === 'php')
                    
184			{
                    
185				$message .= "<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?>\n\n";
                    
186			}
                    
199			$microtime_full = microtime(TRUE);
                    
200			$microtime_short = sprintf("%06d", ($microtime_full - floor($microtime_full)) * 1000000);
                    
201			$date = new DateTime(date('Y-m-d H:i:s.'.$microtime_short, $microtime_full));
                    
                
MinkTestCase.php https://gitlab.com/x33n/ImpressPages | PHP | 203 lines
                    
1<?php
                    
2
                    
3
                    
4namespace PhpUnit\Helper;
                    
5
                    
6
                    
7class MinkTestCase extends \PHPUnit_Framework_TestCase
                    
8{
                    
42    {
                    
43        static::stopSession($this->session, $this->getStatus() == \PHPUnit_Runner_BaseTestRunner::STATUS_PASSED);
                    
44
                    
75                'build' => getenv('TRAVIS_BUILD_NUMBER'),
                    
76                'tags' => array(getenv('TRAVIS_PHP_VERSION'), 'CI')
                    
77            );
                    
145
                    
146        $start = microtime(true);
                    
147
                    
                
micro_bench.php https://gitlab.com/envieidoc/tomato | PHP | 358 lines
                    
1<?php
                    
2
                    
240
                    
241function getmicrotime()
                    
242{
                    
249  ob_start();
                    
250  return getmicrotime();
                    
251}
                    
256  global $last_time;
                    
257  $end = getmicrotime();
                    
258  ob_end_clean();
                    
269  ob_start();
                    
270  return getmicrotime();
                    
271}
                    
                
centAcl-Func.php https://gitlab.com/florianocomercial/centreon | PHP | 418 lines
                    
1<?php
                    
2
                    
40
                    
41function microtime_float2() {
                    
42    list($usec, $sec) = explode(" ", microtime());
                    
                
class.dbhandler.php https://github.com/Sunlightshadow/wowarmory.git | PHP | 266 lines
                    
1<?php
                    
2
                    
7 * @copyright (c) 2009-2010 Shadez
                    
8 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
                    
9 *
                    
116        $make_array = array();
                    
117        $query_start = microtime(true);
                    
118        $this->queryCount++;
                    
170        }
                    
171        $query_end = microtime(true);
                    
172        $queryTime = round($query_end - $query_start, 4);
                    
                
stress_test.php https://github.com/prabhupathak/openemr.git | PHP | 419 lines
                    
7<pre>
                    
8<?php
                    
9
                    
31 !*/
                    
32function getmicrotime ()
                    
33{
                    
33{
                    
34	list ($usec, $sec) = explode (' ', microtime ());
                    
35	return (float)$usec + (float)$sec;
                    
61// require gacl
                    
62require_once (dirname (__FILE__) . '/../admin/gacl_admin.inc.php');
                    
63
                    
70
                    
71$overall_start = getmicrotime ();
                    
72
                    
                
index.markdown https://gitlab.com/orvi2014/phpjs | Markdown | 382 lines
                    
2layout: page
                    
3title: "PHP functions for JavaScript"
                    
4comments: false
                    
14<!-- Generated by Rakefile:build -->
                    
15If you are missing functions, there is a chance you may find them in our [experimental](https://github.com/kvz/phpjs/tree/master/experimental) 
                    
16and [workbench](https://github.com/kvz/phpjs/tree/master/workbench) folders. Warning: we keep 
                    
127 - [idate](/functions/idate)
                    
128 - [microtime](/functions/microtime)
                    
129 - [mktime](/functions/mktime)
                    
                
Message.php https://bitbucket.org/babanesma/mysimpleadmin.git | PHP | 246 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Message.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
24/**
                    
25 * A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be
                    
26 * logged to Firebug instead of a variable.
                    
33 */
                    
34class Zend_Wildfire_Plugin_FirePhp_Message
                    
35{
                    
91        $this->_message = $message;
                    
92        $this->_ruid = md5(microtime().mt_rand());
                    
93    }
                    
                
CronHelper.php https://gitlab.com/remyvianne/krowkaramel | PHP | 222 lines
                    
1<?php
                    
2
                    
216  public function enforceExecutionLimit($timer) {
                    
217    $elapsedTime = microtime(true) - $timer;
                    
218    if ($elapsedTime >= $this->getDaemonExecutionLimit()) {
                    
                
pp_payflow_iframe.php https://gitlab.com/shapcy/opencart | PHP | 153 lines
                    
1<?php
                    
2class ControllerPaymentPPPayflowIframe extends Controller {
                    
24
                    
25		$secure_token_id = md5($this->session->data['order_id'] . mt_rand() . microtime());
                    
26
                    
                
Merge.php https://bitbucket.org/jhunsinfotech/blue-blues.git | PHP | 286 lines
                    
1<?php
                    
2/*********************************************************************************
                    
30</script>
                    
31<?php
                    
32require_once('include/database/PearDatabase.php');
                    
32require_once('include/database/PearDatabase.php');
                    
33require_once('config.php');
                    
34global $default_charset;
                    
36// Fix For: http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/2107
                    
37$randomfilename = "vt_" . str_replace(array("."," "), "", microtime());
                    
38
                    
256        	{
                    
257        		if(objMMPage.bDLTempDoc("<?php echo $site_URL?>/test/wordtemplatedownload/<?php echo $filename?>","MMTemplate.doc"))
                    
258        		{
                    
263        					objMMPage.vLTemplateDoc();
                    
264							objMMPage.bBulkHDSrc("<?php echo $site_URL;?>/test/wordtemplatedownload/<?php echo $datafilename ?>");
                    
265        					objMMPage.vBulkOpenDoc();
                    
                
demo.browse.dhtml.php git://pkgs.fedoraproject.org/php-getid3 | PHP | 442 lines
                    
19// | DHTML techniques compatible with MSIE5 and Mozilla.                   |
                    
20// | dependencies: getid3, extras/abstration.php, getid3.css              |
                    
21// +----------------------------------------------------------------------+
                    
22//
                    
23// $Id: demo.browse.dhtml.php,v 1.4 2006/12/03 19:28:17 ah Exp $
                    
24
                    
62function getmicrotime() {
                    
63    list($usec, $sec) = explode(' ', microtime());
                    
64	return ((float) $usec + (float) $sec);
                    
75    echo '<head>';
                    
76    echo '<title>getID3() - /demos/demo.browse.php (sample script)</title>';
                    
77    echo "<meta http-equiv='Content-Style-Type' content='text/css'>";
                    
92    echo xml_gen::br();
                    
93    echo xml_gen::p('getID3() ' . getid3::VERSION . '.<br>PHP ' . phpversion() . ' (' . implode(xml_gen::space(2), $support) . ').');
                    
94    echo xml_gen::p(xml_gen::a('http://getid3.sourceforge.net/', 'http://getid3.sourceforge.net'));
                    
                
window.php https://github.com/codepassive/dev-nimbus.git | PHP | 160 lines
                    
1<?php
                    
2/** 
                    
38		parent::__construct(array(
                    
39			'id' => 'window-' . generateHash(microtime()),
                    
40			'classes' => array(),
                    
137				//For the OK or proceed button
                    
138				$hash = generateHash(microtime());
                    
139				$id = $this->handle . '-button-' . $hash;
                    
                
04printing.php https://gitlab.com/Zinnurain/destination_finder_beta | PHP | 125 lines
                    
22 * @package    PHPExcel
                    
23 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
42echo date('H:i:s') , " Create new PHPExcel object" , EOL;
                    
43$objPHPExcel = new PHPExcel();
                    
44
                    
78$objPHPExcel->getActiveSheet()->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE);
                    
79$objPHPExcel->getActiveSheet()->getPageSetup()->setPaperSize(PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4);
                    
80
                    
93
                    
94$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
                    
95$objWriter->save(str_replace('.php', '.xlsx', __FILE__));
                    
108
                    
109$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
                    
110$objWriter->save(str_replace('.php', '.xls', __FILE__));
                    
                
WindLogger.php https://gitlab.com/wuhang2003/phpwind | PHP | 549 lines
                    
1<?php
                    
2/**
                    
20 * @author Qian Su <aoxue.1988.su.qian@163.com>
                    
21 * @copyright ©2003-2103 phpwind.com
                    
22 * @license http://www.windframework.com
                    
22 * @license http://www.windframework.com
                    
23 * @version $Id: WindLogger.php 3904 2013-01-08 07:01:26Z yishuo $
                    
24 * @package log
                    
249		if ($level === self::LEVEL_PROFILE)
                    
250			$message = $this->_build($msg, $level, $type, microtime(true), 
                    
251				$this->getMemoryUsage(false));
                    
252		elseif ($level === self::LEVEL_DEBUG)
                    
253			$message = $this->_build($msg, $level, $type, microtime(true));
                    
254		else
                    
314		$pid = getmypid();
                    
315		if (strncmp(PHP_OS, 'WIN', 3) === 0) {
                    
316			exec('tasklist /FI "PID eq ' . $pid . '" /FO LIST', $output);
                    
                
Numbers.php https://github.com/arphp/I18N_Arabic.git | PHP | 288 lines
                    
13<h2 dir="ltr">Example Output 1: المعدود مذكر مرفوع</h2>
                    
14<?php
                    
15/**
                    
19 * @package   I18N_Arabic
                    
20 * @author    Khaled Al-Sham'aa <khaled@ar-php.org>
                    
21 * @copyright 2006-2016 Khaled Al-Sham'aa
                    
23 * @license   LGPL <http://www.gnu.org/licenses/lgpl.txt>
                    
24 * @link      http://www.ar-php.org
                    
25 */
                    
27error_reporting(E_STRICT);
                    
28$time_start = microtime(true);
                    
29
                    
29
                    
30require '../../Arabic.php';
                    
31$Arabic = new I18N_Arabic('Numbers');
                    
                
ARC2.php https://github.com/rinie/TransFormr.git | PHP | 450 lines
                    
1<?php
                    
2/**
                    
80    $inc_path = $path ? $path : ARC2::getIncPath($f);
                    
81    $path = $inc_path . $prefix . '_' . urlencode($f) . '.php';
                    
82    if (file_exists($path)) {
                    
86    if ($prefix != 'ARC2') {
                    
87      $path = $inc_path . strtolower($prefix) . '/' . $prefix . '_' . urlencode($f) . '.php';
                    
88      if (file_exists($path)) {
                    
98  function mtime(){
                    
99    list($msec, $sec) = explode(" ", microtime());
                    
100    return ((float)$msec + (float)$sec);
                    
                
bootstrap.php https://gitlab.com/manuperazafa/elsartenbackend | PHP | 440 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Basic CakePHP functionality.
                    
4 *
                    
6 *
                    
7 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
                    
8 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
15 * @link          http://cakephp.org CakePHP(tm) Project
                    
16 * @package       Cake
                    
16 * @package       Cake
                    
17 * @since         CakePHP(tm) v 0.2.9
                    
18 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
                    
20
                    
21define('TIME_START', microtime(true));
                    
22
                    
                
cache.test.php https://bitbucket.org/webpolis/liiv.git | PHP | 268 lines
                    
9 *
                    
10 * CakePHP(tm) Tests <https://trac.cakephp.org/wiki/Developement/TestSuite>
                    
11 * Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
17 * @copyright     Copyright 2005-2008, Cake Software Foundation, Inc. (http://www.cakefoundation.org)
                    
18 * @link          https://trac.cakephp.org/wiki/Developement/TestSuite CakePHP(tm) Tests
                    
19 * @package       cake
                    
135		$this->assertPattern('/php echo \$variable/', $contents);
                    
136		$this->assertPattern('/php echo microtime()/', $contents);
                    
137		$this->assertPattern('/clark kent/', $result);
                    
155		$this->assertNoPattern('/cake:nocache/', $result);
                    
156		$this->assertNoPattern('/php echo/', $result);
                    
157
                    
163		$this->assertPattern('/php echo \$variable/', $contents);
                    
164		$this->assertPattern('/php echo microtime()/', $contents);
                    
165
                    
                
cron.php https://gitlab.com/Blueprint-Marketing/interoccupy.net | PHP | 414 lines
                    
1<?php
                    
2/**
                    
197	if ( ! $gmt_time )
                    
198		$gmt_time = microtime( true );
                    
199
                    
239
                    
240		WP_DEBUG ? include_once( ABSPATH . 'wp-cron.php' ) : @include_once( ABSPATH . 'wp-cron.php' );
                    
241		return;
                    
247	$cron_request = apply_filters( 'cron_request', array(
                    
248		'url' => site_url( 'wp-cron.php?doing_wp_cron=' . $doing_wp_cron ),
                    
249		'key' => $doing_wp_cron,
                    
264
                    
265	// Prevent infinite loops caused by lack of wp-cron.php
                    
266	if ( strpos($_SERVER['REQUEST_URI'], '/wp-cron.php') !== false || ( defined('DISABLE_WP_CRON') && DISABLE_WP_CRON ) )
                    
271
                    
272	$gmt_time = microtime( true );
                    
273	$keys = array_keys( $crons );
                    
                
DatabaseHandle.php https://gitlab.com/tomgidden/php-DatabaseObject | PHP | 375 lines
                    
1<?php
                    
2  /* DatabaseHandle
                    
6
                    
7require_once('DatabaseObject/common/vars.php');
                    
8
                    
19   *
                    
20   * The prepared query caching may not be necessary, as I think DB.php
                    
21   * does this itself.
                    
99	if(defined('TIMINGS') and TIMINGS) {
                    
100	  list($usec, $sec) = explode(" ",microtime());
                    
101	  $start =  ((float)$usec + (float)$sec);
                    
177	if(defined('TIMINGS') and TIMINGS) {
                    
178	  list($usec, $sec) = explode(" ",microtime());
                    
179	  $end =  ((float)$usec + (float)$sec);
                    
230	if(defined('TIMINGS') and TIMINGS) {
                    
231	  list($usec, $sec) = explode(" ",microtime());
                    
232	  $start =  ((float)$usec + (float)$sec);
                    
                
WidgetDetailEvent.php https://gitlab.com/mautic-master/mautic | PHP | 299 lines
                    
1<?php
                    
2/**
                    
45        $this->translator = $translator;
                    
46        $this->startTime = microtime();
                    
47    }
                    
163        $this->widget->setTemplateData($templateData);
                    
164        $this->widget->setLoadTime(abs(microtime() - $this->startTime));
                    
165
                    
                
Loader.php https://gitlab.com/r.collas/site_central | PHP | 548 lines
                    
1<?php
                    
2/**
                    
12
                    
13require_once 'Exception.php';
                    
14
                    
167
                    
168		return str_replace('_', DIRECTORY_SEPARATOR, $class_name).'.php';
                    
169
                    
246
                    
247		list($tps_usec, $tps_sec) = explode(" ", microtime());
                    
248
                    
275		$space = $is_cli ? ' ' : '&nbsp;';
                    
276		$crlf = $is_cli ? PHP_EOL : '<br />';
                    
277		
                    
302
                    
303		if($this->getRequest()->isCli() || PHP_VERSION < '5.3')
                    
304			return print_r($var, true);
                    
                
cache.test.php https://github.com/wagonlips/cake_1_3.git | PHP | 499 lines
                    
6 *
                    
7 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing>
                    
8 * Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
13 * @copyright     Copyright 2005-2010, Cake Software Foundation, Inc. (http://cakefoundation.org)
                    
14 * @link          http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests
                    
15 * @package       cake
                    
147		$this->assertPattern('/php echo \$variable/', $contents);
                    
148		$this->assertPattern('/php echo microtime()/', $contents);
                    
149		$this->assertPattern('/clark kent/', $result);
                    
210		$this->assertPattern('/php echo \$variable/', $contents);
                    
211		$this->assertPattern('/php echo microtime()/', $contents);
                    
212		$this->assertNoPattern('/cake:nocache/', $contents);
                    
289
                    
290		$filename = CACHE . 'views' . DS . 'cachetest_cache_complex.php';
                    
291		$this->assertTrue(file_exists($filename));
                    
                
Store.php https://gitlab.com/techniconline/kmc | PHP | 672 lines
                    
1<?php namespace Illuminate\Session;
                    
2
                    
189    {
                    
190        return sha1(uniqid('', true) . str_random(25) . microtime(true));
                    
191    }
                    
                
ClassMapGeneratorTest.php https://gitlab.com/pr0055/symfonypizza | PHP | 145 lines
                    
83                'NamespaceCollision\\A\\B\\Bar' => realpath(__DIR__).'/Fixtures/beta/NamespaceCollision/A/B/Bar.php',
                    
84                'NamespaceCollision\\A\\B\\Foo' => realpath(__DIR__).'/Fixtures/beta/NamespaceCollision/A/B/Foo.php',
                    
85                'NamespaceCollision\\C\\B\\Bar' => realpath(__DIR__).'/Fixtures/beta/NamespaceCollision/C/B/Bar.php',
                    
106            array(__DIR__.'/Fixtures/php5.4', array(
                    
107                'TFoo' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
108                'CFoo' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
109                'Foo\\TBar' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
110                'Foo\\IBar' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
111                'Foo\\TFooBar' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
111                'Foo\\TFooBar' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
112                'Foo\\CBar' => __DIR__.'/Fixtures/php5.4/traits.php',
                    
113            )),
                    
114            array(__DIR__.'/Fixtures/php5.5', array(
                    
115                'ClassCons\\Foo' => __DIR__.'/Fixtures/php5.5/class_cons.php',
                    
116            )),
                    
                
Array.php https://github.com/meritt/zf.git | PHP | 355 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Array.php 23775 2011-03-01 17:25:24Z ralph $
                    
21 */
                    
25 */
                    
26// require_once 'Zend/Queue/Adapter/AdapterAbstract.php';
                    
27
                    
28/**
                    
29 * Class for using a standard PHP array as a queue
                    
30 *
                    
148             */
                    
149            // require_once 'Zend/Queue/Exception.php';
                    
150            throw new Zend_Queue_Exception('Queue does not exist');
                    
174        if (!$this->isExists($queue->getName())) {
                    
175            // require_once 'Zend/Queue/Exception.php';
                    
176            throw new Zend_Queue_Exception('Queue does not exist:' . $queue->getName());
                    
                
Random.php https://gitlab.com/reasonat/test8 | PHP | 299 lines
                    
1<?php
                    
2
                    
141  public function word($length) {
                    
142    mt_srand((double) microtime() * 1000000);
                    
143
                    
159  /**
                    
160   * Generates a random PHP object.
                    
161   *
                    
                
class.utils.php https://gitlab.com/sokeara/Tribal_Education | PHP | 351 lines
                    
1<?php
                    
2// Exit if accessed directly
                    
15    /** 
                    
16     * Get current microtime as a float. Can be used for simple profiling.
                    
17     */
                    
17     */
                    
18    static public function get_microtime() {
                    
19        return microtime(true);
                    
95    /** 
                    
96     *  PHP_SAPI for fcgi requires a data flush of at least 256
                    
97     *  bytes every 40 seconds or else it forces a script hault
                    
327		//FALL BACK: Windows XP has bug with glob, 
                    
328		//add secondary check for PHP lameness
                    
329		if ($dh = opendir('.')) 
                    
                
Old.php https://gitlab.com/Skull3x/Small-ZC-Plugins | PHP | 308 lines
                    
1<?php
                    
2
                    
29	public function onEnable(){
                    
30		$time = microtime(true);
                    
31		echo ".";
                    
39		$time *= -1;
                    
40		$time += microtime(true);
                    
41		$time *= 1000;
                    
41		$time *= 1000;
                    
42		echo " Done! ($time ms)" . PHP_EOL;
                    
43	}
                    
241		$this->getLogger()->debug("Saving CLB database...");
                    
242		$time = microtime(true);
                    
243		$buffer = self::MAGIC_PREFIX;
                    
259		$this->getLogger()->debug("Loading CLB database...");
                    
260		$time = 0 - microtime(true);
                    
261		$str = @file_get_contents($this->path);
                    
                
profiler.php https://bitbucket.org/sudak/rating.git | PHP | 385 lines
                    
1<?php defined('SYSPATH') or die('No direct script access.');
                    
2/**
                    
48			// Start the benchmark
                    
49			'start_time'   => microtime(TRUE),
                    
50			'start_memory' => memory_get_usage(),
                    
70		// Stop the benchmark
                    
71		Profiler::$_marks[$token]['stop_time']   = microtime(TRUE);
                    
72		Profiler::$_marks[$token]['stop_memory'] = memory_get_usage();
                    
284			// The benchmark has not been stopped yet
                    
285			$mark['stop_time']   = microtime(TRUE);
                    
286			$mark['stop_memory'] = memory_get_usage();
                    
329		// Get the application run time
                    
330		$time = microtime(TRUE) - KOHANA_START_TIME;
                    
331
                    
                
class.jetpack-sync-queue.php https://gitlab.com/hunt9310/ras | PHP | 459 lines
                    
1<?php
                    
2
                    
47		// this basically tries to add the option until enough time has elapsed that
                    
48		// it has a unique (microtime-based) option key
                    
49		while ( ! $added ) {
                    
112		if ( preg_match( '/^jpsq_' . $this->id . '-(\d+\.\d+)-/', $first_item_name, $matches ) ) {
                    
113			return microtime( true ) - floatval( $matches[1] );
                    
114		} else {
                    
391		// at the same time
                    
392		// TODO: confirm we only need to support PHP 5.05+ (otherwise we'll need to emulate microtime as float, and avoid PHP_INT_MAX)
                    
393		// @see: http://php.net/manual/en/function.microtime.php
                    
393		// @see: http://php.net/manual/en/function.microtime.php
                    
394		$timestamp = sprintf( '%.6f', microtime( true ) );
                    
395
                    
396		// row iterator is used to avoid collisions where we're writing data waaay fast in a single process
                    
397		if ( $this->row_iterator === PHP_INT_MAX ) {
                    
398			$this->row_iterator = 0;
                    
                
sql.inc.php https://gitlab.com/sylver.gocloud/gocloudasia-college-system-framework | PHP | 238 lines
                    
1<?php
                    
2if (!$error && $_POST["export"]) {
                    
59		$parse = '[\'"' . ($jush == "sql" ? '`#' : ($jush == "sqlite" ? '`[' : ($jush == "mssql" ? '[' : ''))) . ']|/\\*|-- |$' . ($jush == "pgsql" ? '|\\$[^$]*\\$' : '');
                    
60		$total_start = microtime(true);
                    
61		parse_str($_COOKIE["adminer_export"], $adminer_export);
                    
102						}
                    
103						$start = microtime(true);
                    
104						//! don't allow changing of character_set_results, convert encoding of displayed query
                    
157
                    
158							$start = microtime(true);
                    
159						} while ($connection->next_result());
                    
186<form action="" method="post" enctype="multipart/form-data" id="form">
                    
187<?php
                    
188$execute = "<input type='submit' value='" . lang('Execute') . "' title='Ctrl+Enter'>";
                    
                
captcha_helper.php https://gitlab.com/piratemovin/piratesite | PHP | 341 lines
                    
1<?php
                    
2/**
                    
4 *
                    
5 * An open source application development framework for PHP
                    
6 *
                    
107
                    
108		$now = microtime(TRUE);
                    
109
                    
131
                    
132			// PHP7 or a suitable polyfill
                    
133			if (function_exists('random_int'))
                    
234		// Create image
                    
235		// PHP.net recommends imagecreatetruecolor(), but it isn't always available
                    
236		$im = function_exists('imagecreatetruecolor')
                    
                
active_record.php https://bitbucket.org/gio_jgs/botica.git | PHP | 291 lines
                    
1<?php
                    
2/**
                    
2/**
                    
3 * Kumbia PHP Framework
                    
4 *
                    
15 * Este archivo debe ser incluido desde un controlador
                    
16 * usando include "test/active_record.php"
                    
17 *
                    
32	$test_name = "CREAR Y BORRAR UNA TABLA";
                    
33	$init_time = $start_benchmark = microtime(true);
                    
34	try {
                    
94	if($test){
                    
95		$end_benckmark = microtime(true) - $start_benchmark;
                    
96		print "<div style='background:#CCFF99;border:1px solid green'>";
                    
103	$test_name = "INSERTAR DATOS DE PRUEBA EN EL MODELO";
                    
104	$init_time = $start_benchmark = microtime(true);
                    
105	try {
                    
                
footer.php https://gitlab.com/LibreTitan/Panther | PHP | 181 lines
                    
1<?php
                    
2/**
                    
48	// Load cached quick jump
                    
49	if (file_exists(FORUM_CACHE_DIR.'cache_quickjump_'.$panther_user['g_id'].'.php'))
                    
50		require FORUM_CACHE_DIR.'cache_quickjump_'.$panther_user['g_id'].'.php';
                    
54		if (!defined('FORUM_CACHE_FUNCTIONS_LOADED'))
                    
55			require PANTHER_ROOT.'include/cache.php';
                    
56
                    
57		generate_quickjump_cache($panther_user['g_id']);
                    
58		require FORUM_CACHE_DIR.'cache_quickjump_'.$panther_user['g_id'].'.php';
                    
59	}
                    
143	// Calculate script generation time
                    
144	$time_diff = sprintf('%.3f', microtime(true) - $panther_start);
                    
145	$debug_info = sprintf($lang_common['Querytime'], $time_diff, $db->get_num_queries());
                    
                
31docproperties_write.php https://gitlab.com/partha1227/NECI | PHP | 119 lines
                    
22 * @package    PHPExcel
                    
23 * @copyright  Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
37/** Include PHPExcel */
                    
38require_once dirname(__FILE__) . '/../Classes/PHPExcel.php';
                    
39
                    
48$objPHPExcelReader = PHPExcel_IOFactory::createReader($inputFileType);
                    
49$objPHPExcel = $objPHPExcelReader->load($inputFileName);
                    
50
                    
66echo date('H:i:s') , " Write to Excel2007 format" , EOL;
                    
67$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
                    
68$objWriter->save(str_replace('.php', '.xlsx', __FILE__));
                    
78echo date('H:i:s') , " Reread Excel2007 file" , EOL;
                    
79$objPHPExcelRead = PHPExcel_IOFactory::load(str_replace('.php', '.xlsx', __FILE__));
                    
80
                    
                
daemon.php https://github.com/ksecor/civicrm.git | PHP | 235 lines
                    
1<?php
                    
2/**
                    
33     * The ip address or servername
                    
34     * @see http://www.php.net/manual/en/transports.php
                    
35     * @var string
                    
40     * Protocol to use (tcp, udp, etc.)
                    
41     * @see http://www.php.net/manual/en/transports.php
                    
42     * @var string
                    
81
                    
82        $this->_id = md5(microtime());
                    
83        $this->_name = $name;
                    
                
CurlMultiHandler.php https://gitlab.com/ealexis.t/trends | PHP | 197 lines
                    
1<?php
                    
2namespace GuzzleHttp\Handler;
                    
82        if ($this->delays) {
                    
83            $currentTime = microtime(true);
                    
84            foreach ($this->delays as $id => $delay) {
                    
101            // Perform a usleep if a select returns -1.
                    
102            // See: https://bugs.php.net/bug.php?id=61141
                    
103            usleep(250);
                    
134        } else {
                    
135            $this->delays[$id] = microtime(true) + ($easy->options['delay'] / 1000);
                    
136        }
                    
186    {
                    
187        $currentTime = microtime(true);
                    
188        $nextTime = PHP_INT_MAX;
                    
                
modresponse.class.php https://gitlab.com/haque.mdmanzurul/modx-improve-carolyn | PHP | 282 lines
                    
1<?php
                    
2/**
                    
106
                    
107            $totalTime= (microtime(true) - $this->modx->startTime);
                    
108            $queryTime= $this->modx->queryTime;
                    
112            $phpTime= $totalTime - $queryTime;
                    
113            $phpTime= sprintf("%2.4f s", $phpTime);
                    
114            $source= $this->modx->resourceGenerated ? "database" : "cache";
                    
116            $this->modx->resource->_output= str_replace("[^qt^]", $queryTime, $this->modx->resource->_output);
                    
117            $this->modx->resource->_output= str_replace("[^p^]", $phpTime, $this->modx->resource->_output);
                    
118            $this->modx->resource->_output= str_replace("[^t^]", $totalTime, $this->modx->resource->_output);
                    
174
                    
175        /* tell PHP to call _postProcess after returning the response (for caching) */
                    
176        register_shutdown_function(array (
                    
                
check-environment.php https://github.com/Exercise/zf2.git | PHP | 323 lines
                    
26
                    
27printf('%sEnvironment Checker for Zend Framework LiveDocx Component%s%s', PHP_EOL, PHP_EOL, PHP_EOL);
                    
28
                    
43
                    
44Helper::printCheckEnvironmentLine($counter, sprintf('Checking PHP version (%s)', PHP_VERSION), $result);
                    
45
                    
287    try {
                    
288        $microtime = microtime(true);
                    
289        $mailMerge = new MailMerge();
                    
293        $mailMerge->logIn();
                    
294        $duration = microtime(true) - $microtime;
                    
295        unset($mailMerge);
                    
320
                    
321Helper::printLine(PHP_EOL . $message . PHP_EOL . PHP_EOL);
                    
322
                    
                
smarty_internal_utility.php https://github.com/simsalabim/sandbox.git | PHP | 287 lines
                    
1<?php
                    
2
                    
3/**
                    
4 * Project:     Smarty: the PHP compiling template engine
                    
5 * File:        smarty_internal_utility.php
                    
171        if (isset($resource_name)) {
                    
172            $_resource_part_1 = $resource_name . '.php';
                    
173            $_resource_part_2 = $resource_name . '.cache' . '.php';
                    
282    {
                    
283        $_mtime = microtime();
                    
284        $_mtime = explode(" ", $_mtime);
                    
                
index.php https://github.com/yetanotherx/webtools.git | PHP | 348 lines
                    
1<?php
                    
2//error_reporting(E_ALL);
                    
4
                    
5$time = microtime( 1 );//Calculate time in microseconds to calculate time taken to execute
                    
6
                    
6
                    
7include( '/home/soxred93/public_html/common/header.php' );
                    
8include( '/home/soxred93/wikibot.classes.php' );
                    
8include( '/home/soxred93/wikibot.classes.php' );
                    
9include( '/home/soxred93/stats.php' );
                    
10include( '/home/soxred93/public_html/common/rfalib2.php');
                    
37	echo $msg;
                    
38	include( '/home/soxred93/public_html/common/footer.php' );
                    
39	die();
                    
42
                    
43//Tell footer.php to output source
                    
44/*function outputSource( $msg ) {
                    
                
mod.php https://gitlab.com/potion/librechan | PHP | 216 lines
                    
1<?php
                    
2
                    
6
                    
7require 'inc/functions.php';
                    
8require 'inc/mod/pages.php';
                    
10if ($config['debug'])
                    
11	$parse_start_time = microtime(true);
                    
12
                    
147
                    
148$parse_start_time = microtime(true);
                    
149
                    
191			);
                    
192			$debug['time']['parse_mod_req'] = '~' . round((microtime(true) - $parse_start_time) * 1000, 2) . 'ms';
                    
193		}
                    
                
StandardTest.php https://gitlab.com/yousafsyed/easternglamor | PHP | 160 lines
                    
1<?php
                    
2/**
                    
9
                    
10class StandardTest extends \PHPUnit_Framework_TestCase
                    
11{
                    
12    /**
                    
13     * @var \Magento\Framework\Profiler\Driver\Standard\Stat|PHPUnit_Framework_MockObject_MockObject
                    
14     */
                    
61            'timer_id',
                    
62            $this->greaterThanOrEqual(microtime(true)),
                    
63            $this->greaterThanOrEqual(0),
                    
79            'timer_id',
                    
80            $this->greaterThanOrEqual(microtime(true)),
                    
81            $this->greaterThanOrEqual(0),
                    
                
Merge.php https://github.com/m-fuji-0616/vtigercrm-5.1.x-ja.git | PHP | 316 lines
                    
1<?php
                    
2/*********************************************************************************
                    
25</script>
                    
26<?php
                    
27
                    
27
                    
28require_once('include/database/PearDatabase.php');
                    
29require_once('config.php');
                    
33// Fix For: http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/2107
                    
34$randomfilename = "vt_" . str_replace(array("."," "), "", microtime());
                    
35
                    
284			{
                    
285				if(objMMPage.bDLTempDoc("<?php echo $site_URL?>/test/wordtemplatedownload/<?php echo $filename?>","MMTemplate.doc"))
                    
286				{
                    
291							objMMPage.vLTemplateDoc();
                    
292							objMMPage.bBulkHDSrc("<?php echo $site_URL;?>/test/wordtemplatedownload/<?php echo $datafilename ?>");
                    
293							objMMPage.vBulkOpenDoc();
                    
                
Logger.php https://gitlab.com/nitm/yii2-module | PHP | 395 lines
                    
1<?php
                    
2
                    
38		parent::init();
                    
39		$this->currentUser = (\Yii::$app->hasProperty('user') && \Yii::$app->user->getId()) ? \Yii::$app->user->getIdentity() : new \nitm\models\User(['username' => (php_sapi_name() == 'cli' ? 'console' : 'web')]);
                    
40
                    
162			'action' => \Yii::$app->getModule('nitm')->getAlert()->store()->getStoredAction($event),
                    
163			'timestamp' => microtime(true),
                    
164			'table_name' => $event->sender->isWhat(),
                    
                
HttpCacheListener.php https://gitlab.com/Isaki/le331.fr | PHP | 168 lines
                    
1<?php
                    
2
                    
98            if (!is_numeric($age)) {
                    
99                $now = microtime(true);
                    
100
                    
108            if (!is_numeric($age)) {
                    
109                $now = microtime(true);
                    
110
                    
                
FileStorage.php https://github.com/PJK/Nette-Exceptions---Independent-Components.git | PHP | 416 lines
                    
1<?php
                    
2
                    
166		$meta = array(
                    
167			self::META_TIME => microtime(),
                    
168		);
                    
218		$head = serialize($meta) . '?>';
                    
219		$head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head;
                    
220		$headLen = strlen($head);
                    
328			if (is_array($meta)) {
                    
329				fseek($handle, $size + self::META_HEADER_LEN); // needed by PHP < 5.2.6
                    
330				$meta[self::FILE] = $file;
                    
                
http.php https://gitlab.com/knowthecode/ktc-sandbox | PHP | 211 lines
                    
1<?php
                    
2/*
                    
51		} else {
                    
52			$start = microtime( true );
                    
53		}
                    
53		}
                    
54		$key = microtime( true ) . $url;
                    
55		$this->data['http'][$key] = array(
                    
130	public function log_http_response( $response, array $args, $url ) {
                    
131		$this->data['http'][$args['_qm_key']]['end']      = microtime( true );
                    
132		$this->data['http'][$args['_qm_key']]['response'] = $response;
                    
                
Generator.php https://gitlab.com/daveson/lacitypatterns | PHP | 174 lines
                    
1<?php
                    
2
                    
9 * Compiles and moves all files in the source/patterns dir to public/patterns dir ONCE.
                    
10 * Vast majority of logic is in builder.lib.php
                    
11 *
                    
28	/**
                    
29	* Pulls together a bunch of functions from builder.lib.php in an order that makes sense
                    
30	* @param  {Boolean}       decide if CSS should be parsed and saved. performance hog.
                    
37		if ($timePL) {
                    
38			$mtime = microtime(); 
                    
39			$mtime = explode(" ",$mtime); 
                    
134		if ($timePL) {
                    
135			$mtime = microtime();
                    
136			$mtime = explode(" ",$mtime);
                    
                
subscriptions.php https://github.com/AndyRixon/LayerBulletin.git | PHP | 246 lines
                    
1<?php
                    
2/*
                    
10|+--------------------------------------------------------------------------
                    
11|   subscriptions.php - create/edit/delete Paypal subscriptions
                    
12*/
                    
18
                    
19template_hook("pages/admin/subscriptions.template.php", "start");
                    
20
                    
21if($_GET['success']=="created"){
                    
22	template_hook("pages/admin/subscriptions.template.php", "successCreated");
                    
23}elseif($_GET['success']=="updated"){
                    
23}elseif($_GET['success']=="updated"){
                    
24	template_hook("pages/admin/subscriptions.template.php", "successUpdated");
                    
25}elseif($_GET['success']=="deleted"){
                    
25}elseif($_GET['success']=="deleted"){
                    
26	template_hook("pages/admin/subscriptions.template.php", "successDeleted");
                    
27}
                    
                
passwordLibClass.php https://gitlab.com/Raymon/QualityCaps_PHP | PHP | 354 lines
                    
6 * 
                    
7 * See: http://php.net/password_hash and http://php.net/password_verify
                    
8 * 
                    
150     * @param type $setting
                    
151     * @return \Antnee\PhpPasswordLib\PhpPasswordLib
                    
152     */
                    
178     * @param STRING $chars
                    
179     * @return \Antnee\PhpPasswordLib\PhpPasswordLib|boolean
                    
180     */
                    
194     * @param INT $algo
                    
195     * @return \Antnee\PhpPasswordLib\PhpPasswordLib
                    
196     */
                    
238     * 
                    
239     * @return \Antnee\PhpPasswordLib\PhpPasswordLib
                    
240     */
                    
                
PostImageHandler.php https://gitlab.com/wubbajack/insided-test | PHP | 288 lines
                    
1<?php namespace App\Core\Handlers;
                    
2
                    
251
                    
252        return hash('sha1', $prefix . microtime() . $file->getBasename()) . $extension;
                    
253    }
                    
                
ABackend.php https://gitlab.com/rsilveira1987/Expresso | PHP | 203 lines
                    
1<?php
                    
2/**
                    
60        
                    
61        $data['id'] = sha1(mt_rand(). microtime());
                    
62        
                    
110            $data = $stmt->fetch();
                    
111            $stmt = null; # see https://bugs.php.net/bug.php?id=44081
                    
112        } catch (Zend_Db_Statement_Exception $zdbse) {
                    
144    /**
                    
145     * (non-PHPdoc)
                    
146     * @see Syncroton_Backend_IBackend::delete()
                    
157    /**
                    
158     * (non-PHPdoc)
                    
159     * @see Syncroton_Backend_IBackend::update()
                    
                
Message.php https://github.com/skoop/Gesichtbuch.git | PHP | 246 lines
                    
1<?php
                    
2/**
                    
19 * @license    http://framework.zend.com/license/new-bsd     New BSD License
                    
20 * @version    $Id: Message.php 6352 2010-08-16 15:02:45Z tpater $
                    
21 */
                    
24/**
                    
25 * A message envelope that can be passed to Zend_Wildfire_Plugin_FirePhp to be
                    
26 * logged to Firebug instead of a variable.
                    
33 */
                    
34class Zend_Wildfire_Plugin_FirePhp_Message
                    
35{
                    
91        $this->_message = $message;
                    
92        $this->_ruid = md5(microtime().mt_rand());
                    
93    }
                    
                
cron.php https://github.com/mchow01/Security.git | PHP | 469 lines
                    
1<?php
                    
2/**
                    
77	$event = (object) array( 'hook' => $hook, 'timestamp' => $timestamp, 'schedule' => $recurrence, 'args' => $args, 'interval' => $schedules[$recurrence]['interval'] );
                    
78	/** This filter is documented in wp-includes/cron.php */
                    
79	$event = apply_filters( 'schedule_event', $event );
                    
220	if ( ! $gmt_time )
                    
221		$gmt_time = microtime( true );
                    
222
                    
263
                    
264		WP_DEBUG ? include_once( ABSPATH . 'wp-cron.php' ) : @include_once( ABSPATH . 'wp-cron.php' );
                    
265		return;
                    
279	 *     @type string $url  The cron request URL.
                    
280	 *     @type int    $key  The 22 digit GMT microtime.
                    
281	 *     @type array  $args {
                    
290	$cron_request = apply_filters( 'cron_request', array(
                    
291		'url'  => add_query_arg( 'doing_wp_cron', $doing_wp_cron, site_url( 'wp-cron.php' ) ),
                    
292		'key'  => $doing_wp_cron,
                    
                
04printing.php https://gitlab.com/abhijit13/taasika | PHP | 125 lines
                    
22 * @package    PHPExcel
                    
23 * @copyright  Copyright (c) 2006 - 2015 PHPExcel (http://www.codeplex.com/PHPExcel)
                    
24 * @license    http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt	LGPL
                    
42echo date('H:i:s') , " Create new PHPExcel object" , EOL;
                    
43$objPHPExcel = new PHPExcel();
                    
44
                    
78$objPHPExcel->getActiveSheet()->getPageSetup()->setOrientation(PHPExcel_Worksheet_PageSetup::ORIENTATION_LANDSCAPE);
                    
79$objPHPExcel->getActiveSheet()->getPageSetup()->setPaperSize(PHPExcel_Worksheet_PageSetup::PAPERSIZE_A4);
                    
80
                    
93
                    
94$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel2007');
                    
95$objWriter->save(str_replace('.php', '.xlsx', __FILE__));
                    
108
                    
109$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'Excel5');
                    
110$objWriter->save(str_replace('.php', '.xls', __FILE__));
                    
                
OAuthRequest.php https://gitlab.com/unofficial-mirrors/moodle | PHP | 290 lines
                    
1<?php
                    
2
                    
19    public static $version = '1.0';
                    
20    public static $POST_INPUT = 'php://input';
                    
21
                    
24        $parameters = ($parameters) ? $parameters : array();
                    
25        $parameters = array_merge( OAuthUtil::parse_parameters(parse_url($http_url, PHP_URL_QUERY)), $parameters);
                    
26        $this->parameters = $parameters;
                    
283    private static function generate_nonce() {
                    
284        $mt = microtime();
                    
285        $rand = mt_rand();
                    
                
server_add.php https://github.com/cybot35/gallery3.git | PHP | 300 lines
                    
1<?php defined("SYSPATH") or die("No direct script access.");
                    
2/**
                    
125    $mode = $task->get("mode", "init");
                    
126    $start = microtime(true);
                    
127
                    
144
                    
145      while ($queue && microtime(true) - $start < 0.5) {
                    
146        list($file, $parent_entry_id) = array_shift($queue);
                    
214      foreach ($entries as $entry) {
                    
215        if (microtime(true) - $start > 0.5) {
                    
216          break;
                    
                
TestClient.php https://gitlab.com/peter.tiedemann/thrift | PHP | 427 lines
                    
1<?php
                    
2
                    
2
                    
3namespace test\php;
                    
4
                    
4
                    
5require_once __DIR__.'/../../lib/php/lib/Thrift/ClassLoader/ThriftClassLoader.php';
                    
6
                    
9if (!isset($GEN_DIR)) {
                    
10  $GEN_DIR = 'gen-php';
                    
11}
                    
16$loader = new ThriftClassLoader();
                    
17$loader->registerNamespace('Thrift', __DIR__ . '/../../lib/php/lib');
                    
18$loader->registerDefinition('ThriftTest', $GEN_DIR);
                    
110
                    
111$start = microtime(true);
                    
112
                    
                
Kernel.php https://github.com/pmjones/php-framework-benchmarks.git | PHP | 448 lines
                    
1<?php
                    
2
                    
7use Symfony\Components\DependencyInjection\BuilderConfiguration;
                    
8use Symfony\Components\DependencyInjection\Dumper\PhpDumper;
                    
9use Symfony\Components\DependencyInjection\FileResource;
                    
62
                    
63            $this->startTime = microtime(true);
                    
64        } else {
                    
71        if ($this->debug) {
                    
72            $this->startTime = microtime(true);
                    
73        }
                    
115
                    
116        require_once __DIR__.'/bootstrap.php';
                    
117
                    
276
                    
277        if ($reload || !file_exists($location.'.php')) {
                    
278            $this->buildContainer($class, $location.'.php');
                    
                
 

Source

Language