<?xml version="1.0" encoding="windows-1252"?>
<node id="1005424" title="How to measure time for a particular code section?" created="2012-11-24 15:50:36" updated="2012-11-24 15:50:36">
<type id="115">
perlquestion</type>
<author id="1005383">
abdullah.yildiz</author>
<data>
<field name="doctext">
Hi,
I use 
&lt;code&gt;
#START
$start_time = [Time::HiRes::gettimeofday()];

#MY CODE GOES HERE

#FINISH
$diff = Time::HiRes::tv_interval($start_time);
&lt;/code&gt;

Does $diff give the real execution time during which the particular code is executed? </field>
</data>
</node>
