Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Where be able to measure query running time in v2.4?


tgely

Recommended Posts

DbStatment.php

            $start = microtime(true);
            $this->is_error = !parent::execute($input_parameters);
            d($this->queryString . '<br />Time: ' . sprintf('%f', (microtime(true)-$start)));

where d() is a private debug function:

// display object as string and if true display object as text
function d($v, $text = false) { echo '<pre>Data: '; print_r($v, $text); echo '</pre>'; }

This is a half solution and has no display effect from protected Db.php.

:blink:
osCommerce based shop owner with minimal design and focused on background works. When the less is more.
Email managment with tracking pixel, package managment for shipping, stock management, warehouse managment with bar code reader, parcel shops management on 3000 pickup points without local store.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...