Time your Powershell Commands
Resolution: Select from #Start to #End and copy and paste it all into PowerShell. Make sure you paste it all at once. It will execute the start and end time variables and then subtract it. It will then display the $total in these various units of measure; TotalMilliseconds, TotalSeconds, TotalMinutes, TotalHours, TotalDays, and Ticks.
$Start = Get-Date
Get-Mailbox -resultsize unlimited
$End = Get-Date
$total = $End-$Start