From d55615ef56546612fa64d9cb086b60c6840a7d39 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Sat, 19 Sep 2020 06:52:03 +0000 Subject: [PATCH] Added time measurement --- Scripts/train_dns_cache.ps1 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Scripts/train_dns_cache.ps1 b/Scripts/train_dns_cache.ps1 index 441c5a87..88c75e9e 100755 --- a/Scripts/train_dns_cache.ps1 +++ b/Scripts/train_dns_cache.ps1 @@ -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