mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-22 01:48:20 +02:00
Added time measurement
This commit is contained in:
parent
e9058c116c
commit
d55615ef56
@ -8,6 +8,7 @@
|
|||||||
#
|
#
|
||||||
$Table = import-csv domain_table.csv
|
$Table = import-csv domain_table.csv
|
||||||
|
|
||||||
|
$StartTime = Get-Date
|
||||||
foreach($Row in $Table) {
|
foreach($Row in $Table) {
|
||||||
$Domain = $Row.Domain
|
$Domain = $Row.Domain
|
||||||
write-progress "Training DNS cache with $Domain ..."
|
write-progress "Training DNS cache with $Domain ..."
|
||||||
@ -15,5 +16,7 @@ foreach($Row in $Table) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$Count = $Table.Length
|
$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
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user