100+ results results for 'php microtime repo:goldie/doctrine1' (248 ms)
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)) {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,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 );FileStorage.php https://github.com/vohnicky/treeview.git | PHP | 451 lines
1<?php 2 6 * @copyright Copyright (c) 2004, 2010 David Grudl 7 * @license http://nettephp.com/license Nette license 8 * @link http://nettephp.com 163 $meta = array( 164 self::META_TIME => microtime(), 165 ); 228 $head = serialize($meta) . '?>'; 229 $head = '<?php //netteCache[01]' . str_pad((string) strlen($head), 6, '0', STR_PAD_LEFT) . $head; 230 $headLen = strlen($head); 358 if (is_array($meta)) { 359 fseek($handle, $size + self::META_HEADER_LEN); // needed by PHP < 5.2.6 360 $meta[self::FILE] = $file;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/ducnv/BTL_CN_WEB | 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 {Store.php https://gitlab.com/jed-lagunday/laratuts | PHP | 707 lines
1<?php 2 196 { 197 return sha1(uniqid('', true).Str::random(25).microtime(true)); 198 }meta_view.php https://github.com/ChuguluGames/mediawiki-svn.git | PHP | 218 lines
1<?php 2/* $Id: meta_view.php 1710 2008-08-21 16:44:54Z bernardli $ */ 21if ( $context == "control" ) { 22 srand((double)microtime()*1000000); 23 shuffle($source_names);test.php https://github.com/md-tech/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); 308ProgressBarTest.php https://github.com/mako-framework/framework.git | PHP | 369 lines
1<?php 2 54 $output->shouldReceive('write')->once()->with("\r10/10 ==================== 100% "); 55 $output->shouldReceive('write')->once()->with(PHP_EOL); 56 91 $output->shouldReceive('write')->once()->with("\r10/10 ======================================== 100% "); 92 $output->shouldReceive('write')->once()->with(PHP_EOL); 93 130 $output->shouldReceive('write')->once()->with("\r10/10 ++++++++++++++++++++ 100% "); 131 $output->shouldReceive('write')->once()->with(PHP_EOL); 132 171 $output->shouldReceive('write')->once()->with("\rProcessing files: 10/10 ==================== 100% "); 172 $output->shouldReceive('write')->once()->with(PHP_EOL); 173 203 { 204 protected function getMicrotime(): float 205 {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 {phpdig_functions.php https://bitbucket.org/frchico/chamilo_openshift.git | PHP | 278 lines
172//replace all characters with an accent 173function phpdigStripAccents($chaine,$encoding=PHPDIG_ENCODING) { 174global $phpdigEncode; 181} 182return( strtr( $chaine,$phpdigEncode[$encoding]['str'],$phpdigEncode[$encoding]['tr']) ); 183} 186//Create a ereg for highlighting 187function phpdigPregQuotes($chaine,$encoding=PHPDIG_ENCODING) { 188global $phpdigEncode; 192$chaine = preg_quote(strtolower(phpdigStripAccents($chaine,$encoding))); 193return str_replace($phpdigEncode[$encoding]['char'],$phpdigEncode[$encoding]['ereg'],$chaine); 194} 228//epure a string from all non alnum words (words can contain &__&��� character) 229function phpdigEpureText($text,$min_word_length=2,$encoding=PHPDIG_ENCODING) { 230global $phpdig_words_chars;MediaAccess.php https://github.com/konscript/schroderpartners.git | 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; ?>]').live('click', function() 369 {Word.php https://bitbucket.org/sevenly/magento-ce.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 }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 />";Array.php https://github.com/Martin1982/IBMessagingWorkshopServer.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());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 );Array.php https://github.com/grandison/budo16.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());wp-cache-phase1.php https://github.com/brandonburke/WordPress-Plugin-Baseline.git | PHP | 264 lines
1<?php 2// Pre-2.6 compatibility 5 6if( !include( WP_CONTENT_DIR . '/wp-cache-config.php' ) ) 7 return true; 10 11include( WPCACHEHOME . 'wp-cache-base.php'); 12 26 27require_once( WPCACHEHOME . 'wp-cache-phase2.php'); 28 28 29$plugins = glob( $wp_cache_plugins_dir . '/*.php' ); 30if( is_array( $plugins ) ) { 48function gzip_accepted(){ 49 if( ini_get( 'zlib.output_compression' ) ) // don't compress WP-Cache data files when PHP is already doing it 50 return false;ezbenchmarkrunner.php https://github.com/eeggenberger/ezpublish.git | PHP | 293 lines
1<?php 2/** 11/*! 12 \class eZBenchmarkrunner ezbenchmarkrunner.php 13 \brief The class eZBenchmarkrunner does 101 $entry['prime_start'] = array( 'memory' => memory_get_usage(), 102 'time' => microtime() ); 103 $object->prime( $this ); 104 $entry['prime_end'] = array( 'memory' => memory_get_usage(), 105 'time' => microtime() ); 106 } 112 $entry['start'] = array( 'memory' => memory_get_usage(), 113 'time' => microtime() ); 114 for ( $i = 0; $i < $repeatCount; ++$i ) 118 $entry['end'] = array( 'memory' => memory_get_usage(), 119 'time' => microtime() ); 120mysql.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)); 82List.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;Array.php https://bitbucket.org/haichau59/manga.git | PHP | 355 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Array.php 24594 2012-01-05 21:27:01Z 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());LoggerLoggingEvent.php https://github.com/samar-tmr/MyVenture.git | PHP | 378 lines
17 * 18 * @package log4php 19 */ 87 /** 88 * The application supplied message rendered through the log4php 89 * objet rendering mechanism. At present renderedMessage == message. 95 * The name of thread in which this logging event was generated. 96 * log4php saves here the process id via {@link PHP_MANUAL#getmypid getmypid()} 97 * @var mixed 145 // get microtime as float 146 $this->timeStamp = microtime(true); 147 } else { 158 * Returns the full qualified classname. 159 * TODO: PHP does contain namespaces in 5.3. Those should be returned too, 160 */NestedTreeRootTest.php https://github.com/kaiwa/DoctrineExtensions.git | PHP | 337 lines
1<?php 2 15 * @link http://www.gediminasm.org 16 * @license MIT License (http://www.opensource.org/licenses/mit-license.php) 17 */ 34 { 35 $start = microtime(true); 36 $dumpTime = function($start, $msg) { 36 $dumpTime = function($start, $msg) { 37 $took = microtime(true) - $start; 38 $minutes = intval($took / 60); $seconds = $took % 60; 38 $minutes = intval($took / 60); $seconds = $took % 60; 39 echo sprintf("%s --> %02d:%02d", $msg, $minutes, $seconds) . PHP_EOL; 40 }; 61 $dumpTime($start, $num.' - inserts took:'); 62 $start = microtime(true); 63 // test movingwp-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 }PasswordHash.php https://github.com/Emaratilicious/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);stress_test.php https://github.com/md-tech/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 (); 72MageTest.php https://bitbucket.org/jokusafet/magento2.git | PHP | 238 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 24 * @copyright Copyright (c) 2012 X.commerce, Inc. (http://www.magentocommerce.com) 25 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 26 */ 27 28class MageTest extends PHPUnit_Framework_TestCase 29{ 48 $objectManager = Mage::getObjectManager(); 49 /** @var $objectManager Magento_ObjectManager_Zend|PHPUnit_Framework_MockObject_MockObject */ 50 $mock = $this->getMock('Magento_ObjectManager_Zend', array('get'), array(), '', false); 85 * @magentoConfigFixture current_store dev/log/file php://output 86 * @link http://us3.php.net/manual/en/wrappers.php 87 */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/thohid44/Complete_Sumitted_Project_Without_Filter_Search | 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 */captcha_pi.php https://github.com/cawago/ci_campusync_auth.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 */AdminController.php https://github.com/joshuaswarren/weatherhub.git | PHP | 165 lines
1<?php 2 73 $model->attributes=$_POST['User']; 74 $model->activkey=Yii::app()->controller->module->encrypting(microtime().$model->password); 75 $model->createtime=time(); 111 $model->password=Yii::app()->controller->module->encrypting($model->password); 112 $model->activkey=Yii::app()->controller->module->encrypting(microtime().$model->password); 113 }GeneratedPeerDoSelectTest.php https://github.com/1989gaurav/Propel.git | PHP | 439 lines
1<?php 2 10 11require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/BookstoreEmptyTestBase.php'; 12 104 $obj2 = $joinBooks[0]; 105 $obj2Array = $obj2->toArray(BasePeer::TYPE_PHPNAME, true, array(), true); 106 // $joinSize = strlen(serialize($obj2)); 183 184 $sampleval = md5(microtime()); 185 281 * Test hydration of joined rows that contain lazy load columns. 282 * @link http://propel.phpdb.org/trac/ticket/464 283 */ 313 * Testing foreign keys with multiple referrer columns. 314 * @link http://propel.phpdb.org/trac/ticket/606 315 */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/Cesarh/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) {Dumper.php https://github.com/DragonFire/wowcs.git | PHP | 457 lines
1<?php 2 19 **/ 20$time_start = microtime(); 21if(!@include('../includes/WoW_Loader.php')) { 130 array( 131 'name' => 'glyphproperties', 132 'internalFile' => false, 453unset($sql_dump_text); 454$time_end = microtime(); 455$overall = ($time_end - $time_start);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';CredisTestCommon.php https://github.com/colinmollenhour/credis.git | PHP | 181 lines
2// backward compatibility (https://stackoverflow.com/a/42828632/187780) 3if (!class_exists('\PHPUnit\Framework\TestCase') && class_exists('\PHPUnit_Framework_TestCase')) { 4 class_alias('\PHPUnit_Framework_TestCase', '\PHPUnit\Framework\TestCase'); 7if (version_compare(phpversion(), '8.0.0', '>=')) { 8 include 'phpunit-shims/php8.php'; 9} else { 9} else { 10 include 'phpunit-shims/php7.php'; 11} 113 echo "\tredis-server redis-auth.conf".PHP_EOL; 114 echo "\tredis-server redis-socket.conf".PHP_EOL.PHP_EOL; 115 } else { 163 /** 164 * php 7.2 compat fix, as directly polyfilling for older PHPUnit causes a function signature compatibility issue 165 * This is due to the defined return typeHttp.php https://github.com/strangerstudios/paid-memberships-pro.git | PHP | 273 lines
1<?php 2namespace Braintree; 56 $headers = [ 57 'User-Agent: Braintree PHP Library ' . Version::get(), 58 'X-ApiVersion: ' . Configuration::API_VERSION 139 $headers = $this->_getHeaders($curl); 140 $headers[] = 'User-Agent: Braintree PHP Library ' . Version::get(); 141 $headers[] = 'X-ApiVersion: ' . Configuration::API_VERSION; 159 if (!empty($file)) { 160 $boundary = "---------------------" . md5(mt_rand() . microtime()); 161 $headers[] = "Content-Type: multipart/form-data; boundary={$boundary}";Array.php https://github.com/Enrise/Zend.git | PHP | 355 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Array.php 24593 2012-01-05 20:35:02Z 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());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 [],ArrayStorage.php https://github.com/MontmereLimited/zf2.git | PHP | 345 lines
1<?php 2/** 63 parent::__construct($input, $flags, $iteratorClass); 64 $this->setMetadata('_REQUEST_ACCESS_TIME', microtime(true)); 65 }Array.php https://github.com/Freeaqingme/ZF1_Lib.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());start.php https://github.com/masuman/elgg-1.git | PHP | 219 lines
18 global $START_MICROTIME; 19 $START_MICROTIME = microtime(true); 20 39 40 if (!include_once(dirname(__FILE__) . "/lib/system_log.php")) { // Logging library 41 echo "Error in installation: could not load the System Log library."; 133 'CVS','cvs', 134 'settings.php','settings.example.php','languages.php','exceptions.php','elgglib.php','access.php','database.php','actions.php','sessions.php' 135 ); 180 // Forward if we haven't been installed 181 if ((!$installed || !$db_installed) && !substr_count($_SERVER["PHP_SELF"],"install.php") && !substr_count($_SERVER["PHP_SELF"],"css.php") && !substr_count($_SERVER["PHP_SELF"],"action_handler.php")) { 182 header("Location: install.php"); 187 if (!substr_count($_SERVER["PHP_SELF"],"install.php") && 188 !substr_count($_SERVER["PHP_SELF"],"setup.php") && 189 !$lightmodeMcrypt.php https://bitbucket.org/haichau59/manga.git | PHP | 364 lines
73 if (!extension_loaded('mcrypt')) { 74 //require_once 'Zend/Filter/Exception.php'; 75 throw new Zend_Filter_Exception('This filter needs the mcrypt extension'); 135 if (!mcrypt_module_self_test($options['algorithm'], $options['algorithm_directory'])) { 136 //require_once 'Zend/Filter/Exception.php'; 137 throw new Zend_Filter_Exception('The given algorithm can not be used due an internal mcrypt problem'); 171 $this->_srand(); 172 if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN' && version_compare(PHP_VERSION, '5.3.0', '<')) { 173 $method = MCRYPT_RAND; 174 } else { 175 if (file_exists('/dev/urandom') || (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')) { 176 $method = MCRYPT_DEV_URANDOM; 184 } else if (strlen($vector) != $size) { 185 //require_once 'Zend/Filter/Exception.php'; 186 throw new Zend_Filter_Exception('The given vector has a wrong size for the set algorithm');Version.php https://github.com/nguyennamtien/TaskBoxx.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);vivoRDFExport.php https://bitbucket.org/vsposato/vivo-tools.git | PHP | 457 lines
1#!/usr/bin/php 2 2 3<?php 4 55 56// Retrieve the current microtime so that we can calulate length of time it took 57$startTime = microtime_float(); 86// Capture the current time in Unix timestamp 87$endTime = microtime_float(); 88// Calculate number of seconds for execution and output it 452} 453function microtime_float(){ 454 list($usec, $sec) = explode(" ", microtime());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 = '';KalturaClientBase.php https://github.com/richhl/kalturaCE.git | PHP | 606 lines
1<?php 2class KalturaClientBase 6 const KALTURA_SERVICE_FORMAT_XML = 2; 7 const KALTURA_SERVICE_FORMAT_PHP = 3; 8 74 75 $startTime = microtime(true); 76 85 86 $url = $this->config->serviceUrl."/api_v3/index.php?service="; 87 if ($this->isMultiRequest) 122 123 if ($this->config->format == self::KALTURA_SERVICE_FORMAT_PHP) 124 { 140 141 $endTime = microtime (true); 142Profiler.php https://github.com/Seizam/seizamcore.git | PHP | 484 lines
1<?php 2/** 49 $this->mWorkStack[] = array( '-total', 0, $wgRequestTime, 0 ); 50 $this->mStack[] = array( '-setup', 1, $wgRequestTime, 0, microtime(true), 0 ); 51 } else { 249 $space = str_repeat(' ', $level); 250 # The ugly double sprintf is to work around a PHP bug, 251 # which has been fixed in recent releases. 258 } else { 259 return microtime(true); 260 }Chive.class.php https://github.com/advocaite/Stargate-Wars.git | PHP | 201 lines
1<?php 2// Base::Chive.class.php 180 function start() { 181 $microstart = explode(' ',microtime()); 182 $this->_start_time = $microstart[0] + $microstart[1]; 188 function stop() { 189 $microstop = explode(' ',microtime()); 190 $this->_stop_time = $microstop[0] + $microstop[1];captcha_helper.rst https://github.com/dchill42/CodeIgniter.git | ReStructuredText | 143 lines
22 23.. php:function:: function create_captcha($data = '', $img_path = '', $img_url = '', $font_path = '') 24 38 'image' => IMAGE TAG 39 'time' => TIMESTAMP (in microtime) 40 'word' => CAPTCHA WORDconditionals.php https://github.com/andrewmriley/PHP-Speed-Tests.git | PHP | 303 lines
1<?php 2$total_loops = 1000000; 4 5$time_start = microtime(true); 6for($x = 0; $x < $total_loops; $x++) { 12} 13$time_end = microtime(true); 14$t = $time_end - $time_start; 18 19$time_start = microtime(true); 20for($x = 0; $x < $total_loops; $x++) { 26} 27$time_end = microtime(true); 28$t = $time_end - $time_start; 32 33$time_start = microtime(true); 34for($x = 0; $x < $total_loops; $x++) {init.php https://bitbucket.org/simancms/simancms.git | PHP | 140 lines
1<?php 2 67 $special['main_tpl'] = 'index'; 68 $special['page_url'] = 'index.php'; 69 if (!empty($_servervars['QUERY_STRING'])) 128 129 $sm['s']['page_system_id'] = 'smp'.microtime(true).$sm['s']['rand']; 130 $sm['s']['customcss']=[];daemon.php https://bitbucket.org/blackriver/openx.git | PHP | 230 lines
1<?php 2// $Id: daemon.php 6783 2007-05-22 13:18:48Z andrew.hill@openads.org $ 28 * The ip address or servername 29 * @see http://www.php.net/manual/en/transports.php 30 * @var string 35 * Protocol to use (tcp, udp, etc.) 36 * @see http://www.php.net/manual/en/transports.php 37 * @var string 76 77 $this->_id = md5(microtime()); 78 $this->_name = $name;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();build.transport.databackup.php https://github.com/jgulledge19/DataBackup.git | PHP | 403 lines
1<?php 2/** 67$hasResolver = FALSE; /* Run a resolver after installing everything */ 68$hasSetupOptions = FALSE; /* HTML/PHP script to interact with user */ 69$hasMenu = FALSE; /* Add items to the MODx Top Menu */ 72/* Note: TVs are connected to their templates in the script resolver 73 * (see _build/data/resolvers/install.script.php) 74 */ 77/* Note: plugin events are connected to their plugins in the script 78 * resolver (see _build/data/resolvers/install.script.php) 79 */ 84/* Note: property sets are connected to elements in the script 85 * resolver (see _build/data/resolvers/install.script.php) 86 */ 100/* set start time */ 101$mtime = microtime(); 102$mtime = explode(" ", $mtime);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 andmssql.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(); 174Profiler.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 */daemon.php https://github.com/ckdimka/core.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;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}phpquickprofiler.php https://bitbucket.org/kawadatetsuya/twilio.git | PHP | 231 lines
1<?php 2 4 5 Title : PHP Quick Profiler Class 6 Author : Created by Ryan Campbell 17 18class PhpQuickProfiler { 19 165 $speedTotals = array(); 166 $speedTotals['total'] = $this->getReadableTime((static::getMicroTime() - $this->startTime)*1000); 167 $speedTotals['allowed'] = ini_get("max_execution_time"); 174 175 public static function getMicroTime() { 176 $time = microtime(); 181 public function getReadableFileSize($size, $retstring = null) { 182 // adapted from code at http://aidanlister.com/repos/v/function.size_readable.php 183 $sizes = array('bytes', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB');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']);Log.php https://gitlab.com/betanurlaila/UI_onlineshop | 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));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';util_funcs.php https://github.com/ryjkov/rash-qdb-fork.git | PHP | 198 lines
1<?php 2 22{ 23 include 'settings.php'; 24 return $CONFIG['db_table_prefix'].'_'.$name; 28{ 29 include 'settings.php'; 30 if ($ar2 === null) return $ar1; 73 74 header("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF'])); 75} 85 mk_cookie('passwd'); 86 header('Location: http://' . $_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])); 87} 123 $fp = fopen($fname,"w"); 124 $str = "<?php\n"; 125 if ($data)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); 147daemon.php https://github.com/orchestra-io/sample-openx.git | PHP | 230 lines
1<?php 2// $Id: daemon.php 18922 2008-04-16 08:56:47Z monique.szpak@openx.org $ 28 * The ip address or servername 29 * @see http://www.php.net/manual/en/transports.php 30 * @var string 35 * Protocol to use (tcp, udp, etc.) 36 * @see http://www.php.net/manual/en/transports.php 37 * @var string 76 77 $this->_id = md5(microtime()); 78 $this->_name = $name;daemon.php https://github.com/orchestra-io/sample-openx.git | PHP | 230 lines
1<?php 2// $Id: daemon.php 22781 2008-07-16 16:52:20Z chris.nutting@openx.org $ 28 * The ip address or servername 29 * @see http://www.php.net/manual/en/transports.php 30 * @var string 35 * Protocol to use (tcp, udp, etc.) 36 * @see http://www.php.net/manual/en/transports.php 37 * @var string 76 77 $this->_id = md5(microtime()); 78 $this->_name = $name;micro_bench.php https://gitlab.com/envieidoc/advancedtomato2 | 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);wppa.php https://bitbucket.org/antonyravel/cape-resorts.git | PHP | 117 lines
9*/ 10/* See explanation on activation hook in wppa-setup.php */ 11register_activation_hook(__FILE__, 'wppa_activate_plugin'); 24/* Check for php version 25/* PHP_VERSION_ID is available as of PHP 5.2.7, if our 26/* version is lower than that, then emulate it 29global $wppa_starttime; $wppa_starttime = microtime(true); 30global $wppa_loadtime; $wppa_loadtime = - microtime(true); 31if ( ! defined( 'PHP_VERSION_ID' ) ) { 32 $version = explode( '.', PHP_VERSION ); 33 define( 'PHP_VERSION_ID', ( $version[0] * 10000 + $version[1] * 100 + $version[2] ) ); 34} 60require_once 'wppa-slideshow-widget.php'; 61require_once 'wppa-gp-widget.php'; 62require_once 'wppa-comment-widget.php';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)profiler.php https://bitbucket.org/seyar/kinda.local.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; 331Message.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 }ARC2.php https://github.com/mterenzio/FollowThis.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);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()) {module.audio-video.flv.php https://github.com/robertleeplummerjr/bluebox.git | PHP | 505 lines
1<?php 2///////////////////////////////////////////////////////////////// 28// // 29// module.audio-video.flv.php // 30// module for analyzing Shockwave Flash Video files // 46 function getid3_flv(&$fd, &$ThisFileInfo, $ReturnAllTagData=false) { 47//$start_time = microtime(true); 48 fseek($fd, $ThisFileInfo['avdataoffset'], SEEK_SET); 72 } 73//echo __LINE__.'='.number_format(microtime(true) - $start_time, 3).'<br>'; 74 91 92//echo __LINE__.'['.ftell($fd).']=('.$TagType.')='.number_format(microtime(true) - $start_time, 3).'<br>'; 93pp_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()); 26Merge.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'));cron.php https://bitbucket.org/jstroschein/wordpress-3.5.1-clean.git | 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 );biblio_list_sphinx.inc.php https://github.com/masir/ucs-2.0.git | PHP | 328 lines
1<?php 2/** 127 // start time 128 $_start = function_exists('microtime')?microtime(true):time(); 129 // execute query 138 // end time 139 $_end = function_exists('microtime')?microtime(true):time(); 140 $this->query_time = round($_end-$_start, 5);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);function.config_load.php https://github.com/atutor/phpdoc2.git | PHP | 130 lines
1<?php 2/** 13 * Purpose: load config file vars 14 * @link http://smarty.php.net/manual/en/language.function.config.load.php {config_load} 15 * (Smarty online manual) 28 $_params = array(); 29 require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_microtime.php'); 30 $_debug_start_time = smarty_core_get_microtime($_params, $smarty); 60 $_params = array('file_path' => $smarty->config_dir); 61 require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_include_path.php'); 62 smarty_core_get_include_path($_params, $smarty); 77 if(!is_object($smarty->_conf_obj)) { 78 require_once SMARTY_DIR . $smarty->config_class . '.class.php'; 79 $smarty->_conf_obj = new $smarty->config_class($_config_dir); 118 $_params = array(); 119 require_once(SMARTY_DIR . 'core' . DIRECTORY_SEPARATOR . 'core.get_microtime.php'); 120 $smarty->_smarty_debug_info[] = array('type' => 'config',Word.php https://github.com/mfairchild365/zf2.git | PHP | 420 lines
1<?php 2/** 363 { 364 return md5(mt_rand(0, 1000) . microtime(true)); 365 }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');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)); 22cache.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