Overview

Namespaces

  • Core
    • Auth
    • Exceptions
    • Helpers
    • Providers
  • Kernel
    • Dispatch
    • Providers
  • None
  • Vendor
    • ExampleVendor

Classes

  • Controller
  • ErrorController
  • HomeController
  • HomeModel
  • LoginController
  • LoginModel
  • Model

Functions

  • _die
  • asset
  • clock_end
  • clock_start
  • clock_time
  • config
  • ddie
  • deleteDir
  • email_png
  • env
  • folder_action
  • folder_recurse
  • generateFile
  • getClientIP
  • getClientUserAgent
  • getVersion
  • isAjax
  • isAuth
  • isDev
  • isLocalServer
  • isProd
  • nocache
  • php
  • ppie
  • query
  • queryIndexed
  • save_ini_file
  • t
  • versioning
  • view
  • write_ini
  • Overview
  • Namespace
  • Function
  • Download

Function clock_start

Starts a clock to compute execution time. Set a key if you want to use more than one.

Example:
clock_start('all');
clock_start('query');

$result = query('SELECT * ...')
clock_end('query');

doSomething($result);
echo $result;
clock_end('all');

$queryTime = clock_time('query');
$totalTime = clock_time('all');

Located at app/Kernel/Helpers/support_functions.php
Parameters summary
string $key = 'main' An optional key to compute overlapping times.
Return value summary
float The time the clock starts; format: seconds.microseconds
Ribosome API documentation generated by ApiGen