Slackbot
07/11/2023, 10:43 AMNick Panaccio
07/11/2023, 11:09 AMNick Panaccio
07/11/2023, 11:14 AM$t1 = 11.4
$t2 = 5.1
Write-Host "Accessing Outlook data file [online]. Please wait... " -NoNewLine
Start-Sleep -seconds $t1
Write-Host "$t1 seconds"
Write-Host "Accessing Outlook data file [cached mode]. Please wait... " -NoNewLine
Start-Sleep -seconds $t2
Write-Host "$t2 seconds"
Nick Panaccio
07/11/2023, 11:14 AMNick Panaccio
07/11/2023, 11:18 AMNick Panaccio
07/11/2023, 11:19 AMNick Panaccio
07/11/2023, 11:19 AM$Stopwatch = [System.Diagnostics.Stopwatch]::StartNew()
#Access Outlook
$Stopwatch.Stop()
#Get the run time, in seconds, to the 2nd decimal point
$Runtime = [math]::Round($Stopwatch.Elapsed.TotalSeconds,2)
James Rankin
07/11/2023, 11:24 AMMichiel Roos
07/11/2023, 12:09 PMJames Rankin
07/11/2023, 12:13 PMRachel Berry
07/11/2023, 12:39 PMJames Rankin
07/11/2023, 12:39 PMRachel Berry
07/11/2023, 12:42 PMJames Rankin
07/11/2023, 12:42 PMRachel Berry
07/11/2023, 12:45 PMLeee Jeffries
07/11/2023, 8:45 PMJames Rankin
07/12/2023, 8:18 AMLeee Jeffries
07/12/2023, 10:41 AM