$t0 = get-date start-sleep 5 $t1 = get-date $diff = new-timeSpan $t0 $t1 write-host $diff.Seconds
System.TimeSpan
Index