title: PowerShell: New-Timespan format result
body: <p>When I´m using the folling PowerShell code, I´m getting results like 123.0000232 for example.</p>
  
  <p>Is is there a paramter to format the result?</p>
  
  <p>I want a result like 123</p>
  
  <pre><code>$TimeStart = Get-Date
  #some code
  sleep 2
  (New-TimeSpan -Start $TimeStart -End $(Get-Date)).TotalSeconds
  </code></pre>
  
  <p>Thank you in advance</p>