Title: GenTime: Inspect page generation time
Author: Sybre Waaijer
Published: <strong>2015 年 9 月 7 日</strong>
Last modified: 2025 年 12 月 3 日

---

搜索插件

![](https://ps.w.org/gentime/assets/banner-772x250.jpg?rev=1240059)

![](https://s.w.org/plugins/geopattern-icon/gentime_98b0bb.svg)

# GenTime: Inspect page generation time

 作者：[Sybre Waaijer](https://profiles.wordpress.org/cybr/)

[下载](https://downloads.wordpress.org/plugin/gentime.2.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/gentime/#description)
 * [评价](https://cn.wordpress.org/plugins/gentime/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/gentime/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/gentime/#developers)

 [支持](https://wordpress.org/support/plugin/gentime/)

## 描述

#### GenTime

This plugin shows site administrators the time in seconds of how fast the page is
generated in the WordPress top admin bar.

The generation time is calculated from when the server receives the page request
to when the number is printed, which is close to the end of the request.

So, just PHP and the database impact this calculation. The time it takes to send
the page from the server to your device is not included in this timer.

That’s it, pretty simple!

## 安装

 1. Install GenTime either via the WordPress.org plugin directory or upload the files
    to your server.
 2. Either Network Activate this plugin or activate it on a single site.
 3. That’s it!

#### Change the number of decimals

Use this filter to change the number of decimals shown by the timer. The number 
defaults to 3, but this filter makes it 4.

    ```
    add_filter( 'gentime_decimals', fn( $default = 3 ) => 4 );
    ```

([Where can I place filters?](https://tsf.fyi/docs/filters#where))

#### Change the view capability requirement

Add this to `wp-config.php` to change the user capability required to view the timer:

    ```
    define( 'GENTIME_VIEW_CAPABILITY', 'manage_options' );
    ```

([List of capabilities](https://wordpress.org/documentation/article/roles-and-capabilities/#capabilities))

## 评价

![](https://secure.gravatar.com/avatar/33252cd1f33526af53580fcb1736172f06e6716f32afdd1be19ec3096d15dea5?
s=60&d=retro&r=g)

### 󠀁[Does what it says on the tin](https://wordpress.org/support/topic/does-what-it-says-on-the-tin-621/)󠁿

 [Matt Mullenweg](https://profiles.wordpress.org/matt/) 2025 年 6 月 30 日

And does it quite well! As an enhancement I’d love to see what queries and remote
calls took the longest.

![](https://secure.gravatar.com/avatar/08c3baedd4c4512966b786b930d4b3369b08ddc5cf68c3186827bd908695d8ae?
s=60&d=retro&r=g)

### 󠀁[Simple and Perfect](https://wordpress.org/support/topic/simple-and-perfect-235/)󠁿

 [Alex T](https://profiles.wordpress.org/trecartin/) 2024 年 8 月 22 日

Simple, low impact and informative!

![](https://secure.gravatar.com/avatar/a299cf0eda34ddb3cfee009b60dcecf4dcdfe1662bdc29c08c27bc2c51343bfe?
s=60&d=retro&r=g)

### 󠀁[Very useful](https://wordpress.org/support/topic/very-useful-3401/)󠁿

 [freelancesgroup](https://profiles.wordpress.org/freelancesgroup/) 2023 年 12 月
22 日

You just activate it and it works without the need for anything else.It couldn’t
be simpler 😉 I liked it a lot

![](https://secure.gravatar.com/avatar/cb9358ffd8587c3498800d9c404ab24e3f8cf81596d7038125e10a65c76226de?
s=60&d=retro&r=g)

### 󠀁[Helps you keep an eye on backend performance ⚡](https://wordpress.org/support/topic/helps-you-keep-an-eye-on-backend-performance-%e2%9a%a1/)󠁿

 [Bjarne Oldrup](https://profiles.wordpress.org/oldrup/) 2023 年 12 月 4 日

Did that object cache have an effect on the back end? Did that PHP 8.2 upgrade change
page generation times? Is the server currently bogged down, or am I just impatient?
GenTime is so simple and yet so useful. By having basic page generation timer in
the admin bar at all times, it really helps to qualify the website speed over time.
Don’t underestimate the importance of backend speed. When managing WordPress websites
all day, a few 100 ms at every click, makes a difference. GenTime is a stable on
the sites I administer now. Highly recommended

![](https://secure.gravatar.com/avatar/65bad1e9b2e349cc0a0e0fd8589f891cb176a3eec414d307ec7d390af91f1aa8?
s=60&d=retro&r=g)

### 󠀁[So fast](https://wordpress.org/support/topic/so-fast-14/)󠁿

 [pixeldevs](https://profiles.wordpress.org/pixeldevs/) 2021 年 7 月 23 日

Doesn’t bog down the system and works as expected! Better than any other timing 
plugin I’ve used.

![](https://secure.gravatar.com/avatar/fc86d9dfbfc88c36be834763e00759fcd59197dee28515e1e4c85204c3abe013?
s=60&d=retro&r=g)

### 󠀁[Great addition!](https://wordpress.org/support/topic/great-addition-27/)󠁿

 [wellbeingtips](https://profiles.wordpress.org/wellbeingtips/) 2016 年 9 月 3 日

Useful for testing page load speed especially if you have many different page setups.
Thanks!

 [ 阅读所有7条评价 ](https://wordpress.org/support/plugin/gentime/reviews/)

## 贡献者及开发者

「GenTime: Inspect page generation time」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Sybre Waaijer ](https://profiles.wordpress.org/cybr/)

「GenTime: Inspect page generation time」插件已被翻译至 4 种本地化语言。 感谢[所有译者](https://translate.wordpress.org/projects/wp-plugins/gentime/contributors)
为本插件所做的贡献。

[帮助将「GenTime: Inspect page generation time」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/gentime)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/gentime/)，查看[SVN仓库](https://plugins.svn.wordpress.org/gentime/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/gentime/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/gentime/)。

## 更新日志

#### 2.0.0

 * Changed: The plugin has been rewritten to adhere to my latest coding standards—
   its old functions are no longer available.
 * Changed: This plugin now requires PHP 7.4, from PHP 5.2.
 * Changed: The default timer view capability now defaults to `'manage_options'`
   instead of `'install_plugins'`.
 * Removed: Filter `'gentime_minimum_role'` is gone. Use constant `GENTIME_VIEW_CAPABILITY`
   instead.

#### 1.1.0

 * Added: Now uses WordPress 5.8’s more accurate function, when available, `timer_float()`.
 * Updated: Now uses HTML5 for the styles output.
 * Other: Refactored the plugin to support PHP 5.6 or later, from 5.2 or later.
 * Other: Cleaned up code.

#### 1.0.4

 * Fixed: This plugin is now converted to UNIX line feed.
 * Improved: Early sanitation of translation strings.
 * Updated: POT file.
 * Confirmed: WordPress 4.6 support.
 * Other: The plugin license has been upgraded to GPLv3.
 * Other: Cleaned up code.

#### 1.0.3

 * Fixed: The cache now works as intended.
 * Fixed/Improved: Erroneous order of function checking. Which actually had no impact.
 * Other: `gentime_minimum_role` filter now converts input to string.

#### 1.0.2

 * Added: POT translation file.
 * Improved: Slightly improved performance (every Herz counts) by adding PHP runtime
   static cache earlier.
 * Confirmed: WordPress 4.5+ compatibility.
 * Cleaned up code.

#### 1.0.1

 * Changed: Minimum capability from edit_plugins to install_plugins so that the 
   generation time is still shown when the Editor has been disabled.
 * Added: PHP Staticvar caching for capability.
 * Confirmed: 4.4.0+ support.
 * Cleaned up PHP.

#### 1.0.0

 * Initial Release

## 额外信息

 *  版本 **2.0.0**
 *  最后更新：**6 月前**
 *  活跃安装数量 **100+**
 *  WordPress 版本 ** 5.3 或更高版本 **
 *  已测试的最高版本为 **6.9.4**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [Dutch](https://nl.wordpress.org/plugins/gentime/) 、 [English (US)](https://wordpress.org/plugins/gentime/)、
   [Spanish (Chile)](https://cl.wordpress.org/plugins/gentime/) 、 [Spanish (Mexico)](https://es-mx.wordpress.org/plugins/gentime/)
   和 [Spanish (Spain)](https://es.wordpress.org/plugins/gentime/).
 *  [翻译成简体中文](https://translate.wordpress.org/projects/wp-plugins/gentime)
 * 标签
 * [admin bar](https://cn.wordpress.org/plugins/tags/admin-bar/)[generation](https://cn.wordpress.org/plugins/tags/generation/)
   [performance](https://cn.wordpress.org/plugins/tags/performance/)[php](https://cn.wordpress.org/plugins/tags/php/)
   [time](https://cn.wordpress.org/plugins/tags/time/)
 *  [高级视图](https://cn.wordpress.org/plugins/gentime/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  7 条 5 星评价     ](https://wordpress.org/support/plugin/gentime/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/gentime/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/gentime/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/gentime/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/gentime/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/gentime/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/gentime/reviews/)

## 贡献者

 *   [ Sybre Waaijer ](https://profiles.wordpress.org/cybr/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/gentime/)