mirror of
https://github.com/fleschutz/PowerShell.git
synced 2024-12-26 16:48:54 +01:00
Added time measurement
This commit is contained in:
parent
e9058c116c
commit
d55615ef56
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user