SupportArea

BoltWire is a FREE content management system written in PHP.

Its innovative architecture combined with best-in-class forms processing makes it ideal for creating complex, interactive, web applications fast...


Documentation

Markups
Variables
Conditions
Functions
Forms
Commands
Cheatsheet

Documentation

Tutorials > Stopwatch

BoltWire comes with a built in stopwatch feature you can use to test various configurations, plugins, etc, to benchmark performance. To use it, put the following in index.php before calling the engine.


$BOLTstopWatch = true;

It tracks various points in the site processing.

To track how long each function takes set $BOLTstopWatch to 'functions'. To track each command, set $BOLTstopWatch to 'commands'. To track both, set it to 'all'.

You can track other points by inserting the following into the code at various points in the code.


BOLTstopWatch('Some unique message');

This output is only visible to the superadmin (not just admins). Generally, it is used offline for development purposes.