You are here

function backup_migrate_format_elapsed_time in Backup and Migrate 8.3

Same name and namespace in other branches
  1. 6.3 backup_migrate.module \backup_migrate_format_elapsed_time()
  2. 7.3 backup_migrate.module \backup_migrate_format_elapsed_time()

Format an elapsed time given in milleseconds.

2 calls to backup_migrate_format_elapsed_time()
backup_migrate_perform_backup in ./backup_migrate.module
Perform a backup with the given settings.
backup_migrate_perform_restore in ./backup_migrate.module
Restore from a file in the given destination.

File

./backup_migrate.module, line 1504
Create (manually or scheduled) and restore backups of your Drupal MySQL database with an option to exclude table data (e.g. cache_*)

Code

function backup_migrate_format_elapsed_time($time) {
  $ms = t('!time ms', array(
    '!time' => $time,
  ));
  if ($time < 1000) {
    return $ms;
  }
  return '<abbr title="' . $ms . '">' . format_interval($time / 1000) . '</abbr>';
}