Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 7 years ago

#19157 closed enhancement (fixed)

Remove PHP4 compat from timer functions

Reported by: solarissmoke's profile solarissmoke Owned by: nacin's profile nacin
Milestone: 3.4 Priority: normal
Severity: minor Version: 3.3
Component: Performance Keywords: has-patch 3.4-early
Focuses: Cc:

Description

The timer_start/stop functions are using microtime() in PHP4 compat mode, without the get_as_float argument. We can make them all much simpler, see patch. Also fixes some of the inline docs.

Attachments (1)

19157.diff (2.6 KB) - added by solarissmoke 13 years ago.
Use microtime() with get_as_float

Download all attachments as: .zip

Change History (6)

#1 @solarissmoke
13 years ago

  • Keywords has-patch added

@solarissmoke
13 years ago

Use microtime() with get_as_float

#2 @nacin
13 years ago

  • Keywords 3.4-early added
  • Milestone changed from Awaiting Review to Future Release

#3 @nacin
13 years ago

  • Milestone changed from Future Release to 3.4

#4 @nacin
13 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [19611]:

Ask for a float from microtime() for timer_start(), timer_stop(). Clarify docs. props solarissmoke, fixes #19157.

#5 @SergeyBiryukov
7 years ago

#16753 was marked as a duplicate.

Note: See TracTickets for help on using tickets.