You are here

function backup_migrate_format_elapsed_time in Backup and Migrate 7.3

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

Formats 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 1695
Backup and restore databases for Drupal.

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>';
}