Hi,
Try replacing:
my $results = GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'search_results', \&query, {});
with:
_time_start();
my $results = GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'search_results', \&query, {});
$results->{query_time} = _time_display();
and copy and paste _time_start and _time_display to search.cgi and add:
use vars qw/$TIME_START/;
to your code. You can then access the time using <%query_time%>.
A plugin would be a better solution, using a pre hook to start the timer and a post hook to stop the timer (as then you don't need to edit any code).
Cheers,
Alex
--
Gossamer Threads Inc.
Try replacing:
my $results = GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'search_results', \&query, {});
with:
_time_start();
my $results = GT::Plugins->dispatch ($CFG->{admin_root_path} . '/Plugins', 'search_results', \&query, {});
$results->{query_time} = _time_display();
and copy and paste _time_start and _time_display to search.cgi and add:
use vars qw/$TIME_START/;
to your code. You can then access the time using <%query_time%>.
A plugin would be a better solution, using a pre hook to start the timer and a post hook to stop the timer (as then you don't need to edit any code).
Cheers,
Alex
--
Gossamer Threads Inc.