15 lines
455 B
PowerShell
15 lines
455 B
PowerShell
|
|
#Requires -RunAsAdministrator
|
||
|
|
$ErrorActionPreference = 'Continue'
|
||
|
|
$dte = New-Object -ComObject TcXaeShell.DTE.17.0
|
||
|
|
$dte.MainWindow.Visible = $true
|
||
|
|
try { $dte.SuppressUI = $false } catch {}
|
||
|
|
Start-Sleep 10
|
||
|
|
Write-Host '--- DTE commands matching time/base/real/tick ---'
|
||
|
|
$cmds = $dte.Commands
|
||
|
|
$count = 0
|
||
|
|
foreach ($c in $cmds) {
|
||
|
|
$count++
|
||
|
|
if ($c.Name -match 'time|base|real|tick|cpu') { Write-Host " $($c.Name)" }
|
||
|
|
}
|
||
|
|
Write-Host "total commands: $count"
|