Tools for benchmarking performance of EPrinst Repository software.
Empties @ids array and $totals and $starts hash references. (So a new benchmarking task can be undertaken).
Returns an integer representing the number of microseconds since the start of the epoch.
EPrints::Bench::enter( $id )
Sets the (microseconds since start of epoch) start time for specified task with $id.
EPrints::Bench::leave( $id )
Sets the total time (in microseconds) for a specified task with $id based on the time since that set for same ID by EPrints::Bench::enter.
Print the individual microseconds for each task carried out since benchmarking was started or last cleared.
© Copyright 2022 University of Southampton.
EPrints 3.4 is supplied by EPrints Services.
This file is part of EPrints 3.4 http://www.eprints.org/.
EPrints 3.4 and this file are released under the terms of the GNU Lesser General Public License version 3 as published by the Free Software Foundation unless otherwise stated.
EPrints 3.4 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with EPrints 3.4. If not, see http://www.gnu.org/licenses/.