Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

windows 10 see how long a program has been running

PS C:> New-TimeSpan -Start (get-process notepad).StartTime


Days              : 0
Hours             : 0
Minutes           : 0
Seconds           : 2
Milliseconds      : 920
Ticks             : 29200041
TotalDays         : 3.379634375E-05
TotalHours        : 0.00081111225
TotalMinutes      : 0.048666735
TotalSeconds      : 2.9200041
TotalMilliseconds : 2920.0041
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #windows #long #program #running
ADD COMMENT
Topic
Name
7+1 =