Home Backend Development PHP Tutorial How to calculate the execution time of a program_PHP Tutorial

How to calculate the execution time of a program_PHP Tutorial

Jul 13, 2016 am 10:52 AM
function list sec how implement time of program calculate

function getmicrotime(){
list($usec, $sec) = explode(" ",microtime());
return ((float)$usec (float)$sec);
}

$time_start = getmicrotime();//Start timing and place it in the program header

for ($i=0; $i < 1000; $i ){
//do nothing, 1000 times
}

$time_end = getmicrotime();//End timing and put it at the end
$time = $time_end - $time_start;

echo "Did nothing in $time seconds";

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632500.htmlTechArticlefunction getmicrotime(){ list($usec, $sec) = explode( ,microtime()); return ( (float)$usec (float)$sec); } $time_start = getmicrotime();//Start timing and put it in the program header for ($i=0; $i...
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1662
14
PHP Tutorial
1262
29
C# Tutorial
1235
24
The U.S. spot ETH ETF listing plan is postponed, and the SEC requires a revised S-1 form to be submitted before July 8 The U.S. spot ETH ETF listing plan is postponed, and the SEC requires a revised S-1 form to be submitted before July 8 Jun 30, 2024 pm 08:38 PM

U.S. Spot Ethereum ETF Launch Delayed The U.S. Securities and Exchange Commission (SEC) has delayed the launch of its spot Ethereum exchange-traded fund (ETH ETF) and required issuers to resubmit Form S-1 before July 8. This decision has resulted in the postponement of the planned launch on July 2, with the new launch expected to be in mid-July or later. Background Overview There has been a change in the review process for spot Ethereum ETFs, with Bloomberg’s senior ETF analyst Eric Balchunas commenting on the SEC’s latest decision and its impact on market expectations. Earlier last month, SEC Chairman Gary Gensler

How to identify genuine and fake shoe boxes of Nike shoes (master one trick to easily identify them) How to identify genuine and fake shoe boxes of Nike shoes (master one trick to easily identify them) Sep 02, 2024 pm 04:11 PM

As a world-renowned sports brand, Nike's shoes have attracted much attention. However, there are also a large number of counterfeit products on the market, including fake Nike shoe boxes. Distinguishing genuine shoe boxes from fake ones is crucial to protecting the rights and interests of consumers. This article will provide you with some simple and effective methods to help you distinguish between real and fake shoe boxes. 1: Outer packaging title By observing the outer packaging of Nike shoe boxes, you can find many subtle differences. Genuine Nike shoe boxes usually have high-quality paper materials that are smooth to the touch and have no obvious pungent smell. The fonts and logos on authentic shoe boxes are usually clear and detailed, and there are no blurs or color inconsistencies. 2: LOGO hot stamping title. The LOGO on Nike shoe boxes is usually hot stamping. The hot stamping part on the genuine shoe box will show

The SEC Temporarily Suspends Its Allegations That SOL, ADA, and MATIC Are Unregistered Securities The SEC Temporarily Suspends Its Allegations That SOL, ADA, and MATIC Are Unregistered Securities Jul 31, 2024 am 12:25 AM

This decision comes amid the ongoing legal proceedings against Binance, one of the world's leading cryptocurrency exchanges.

To strengthen cryptocurrency regulation, Nigeria SEC launches 30-day registration period To strengthen cryptocurrency regulation, Nigeria SEC launches 30-day registration period Jun 22, 2024 pm 10:59 PM

The Nigeria Securities and Exchange Commission (SEC) recently launched a new registration scheme aimed at accelerating the registration process for Virtual Asset Service Providers (VASPs). According to the West African country’s securities market regulator, the move is an important amendment to existing rules aimed at bringing the regulatory framework up to date and adapting to the growing complexity of the cryptocurrency ecosystem. The Nigerian SEC sets a 30-day deadline to accelerate VASP registration. In March this year, the Nigerian SEC announced changes to digital asset issuance, issuance platforms, trading and custody rules. The most eye-catching one is to increase the VASP registration fee from N30 million. (approximately US$20,161) to 150 million naira (approximately US$100,806). This change triggered an industry

In this article, learn about SEC and Fidelity talking about open staking for crypto ETFs! Discussing ETF staking, stablecoins and DeFi regulation In this article, learn about SEC and Fidelity talking about open staking for crypto ETFs! Discussing ETF staking, stablecoins and DeFi regulation Mar 04, 2025 am 11:09 AM

The minutes recently released by the Securities and Exchange Commission (SEC) show that the SEC Cryptocurrency Working Group (CTF) has held talks with Fidelity Investment and MITRE to discuss many key issues in crypto asset regulation. SEC and Fidelity: Pledge of crypto ETFs and related rules At this meeting, SEC and asset management giant Fidelity had in-depth exchanges on the issue of crypto asset supervision. Discussions cover: Customer protection rules related to brokerage dealers' interaction with digital asset securities (Rule15c3-3). Formulate standardized listing rules for digital asset exchange-traded products (ETPs). Clarify ETF pledged assets and operating specifications. Monitoring of blockchain tokens and financial instrument-related rewards (such as pledge income, liquidity mining)

Why Cancelled SEC vs Ripple Meeting Shouldn't Worry XRP Holders Why Cancelled SEC vs Ripple Meeting Shouldn't Worry XRP Holders Aug 01, 2024 pm 10:02 PM

The U.S. Securities and Exchange Commission (SEC) has cancelled a closed-door meeting that was initially scheduled for today at 2 PM Washington time.

App won't load on iPhone: How to fix it App won't load on iPhone: How to fix it Jun 15, 2024 pm 01:32 PM

Apps not loading on your iPhone? If an app takes a long time to load, that's not normal. With the exception of apps that are still in beta, they should load instantly when you open them on your iPhone. Except for some heavy games, if all the apps on your phone are loading slowly or not loading at all, you should follow the steps below to fix it. Fix 1 – Update App (if applicable) Haven’t updated your app in a while? Updating it to the latest version should resolve the issue. Step 1 – Open the AppStore. Step 2 – Just start typing the name of the app in the search box and open the app directly from the suggestions. Step 3 – Click to go to Special

How to deal with video jitter (practical tips to help you eliminate video jitter) How to deal with video jitter (practical tips to help you eliminate video jitter) Sep 02, 2024 pm 03:53 PM

Shaking is a common problem when shooting or watching videos, which affects the viewing experience and reduces the quality of the video. This article will introduce some practical tips to help you deal with video jitter problems and make your videos more stable and smooth. 1. Use Stabilizer Technology to Eliminate Video Shake Using a stabilizer device is one of the simplest and most effective ways to solve the problem of video shake. Stabilizers can reduce jitter caused by hand shaking or other factors by balancing and stabilizing the camera. 2. Introduction to software video stabilization technology Software video stabilization technology eliminates jitter by adjusting the video in post-processing. This technology can provide better video stabilization by tracking key frames, applying image stabilization algorithms, and more. 3. Video jitter detection and automatic repair

See all articles