use TripleI\Timer\Timer; // start the timer Timer::start(); /* some expensive code here */ // let's see how long it took to execute Timer::tick('did some fancy stuff'); /* more expensive code here */ ...
Shortcode with attributes usage: [shipping-countdown-timer hour=16 minute=00] To see the final version as a function, check the "shipping-countdown-timer.php code and follow the shortcode usage ...