略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: HRTime\StopWatch

2024-11-14

The HRTime\StopWatch class

(PECL hrtime >= 0.4.3)

简介

类摘要

class HRTime\StopWatch extends HRTime\PerformanceCounter {
/* 方法 */
public getElapsedTicks(): int
public getElapsedTime(int $unit = ?): float
public getLastElapsedTicks(): int
public getLastElapsedTime(int $unit = ?): float
public isRunning(): bool
public start(): void
public stop(): void
/* 继承的方法 */
public static HRTime\PerformanceCounter::getTicksSince(int $start): int
}

目录

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/class.hrtime-stopwatch.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3