Added time measurement

This commit is contained in:
Markus Fleschutz 2020-09-19 06:52:03 +00:00
parent e9058c116c
commit d55615ef56

View File

@ -8,6 +8,7 @@
#
$Table = import-csv domain_table.csv
$StartTime = Get-Date
foreach($Row in $Table) {
$Domain = $Row.Domain
write-progress "Training DNS cache with $Domain ..."
@ -15,5 +16,7 @@ foreach($Row in $Table) {
}
$Count = $Table.Length
write-host "OK - trained DNS cache with $Count domain names from domain_table.csv"
$StopTime = Get-Date
$TimeInterval = New-Timespan -start $StartTime -end $StopTime
write-host "OK - DNS cache trained with $Count domain names in $TimeInterval sec."
exit 0