title: Parsing a Duration String in Kotlin
body: <p>I'm working on a Android application and I need to parse a duration string of this form "00:00:00.000" (Ex: "00:00:38.47" or "00:03:27.11").</p>
  
  <p>My final goal is to convert this string into a double of total seconds with milliseconds to get a progression percent.</p>
  
  <p>I already looked into SimpleDateFormatter, but I'm having some issue understanding how it works or how I'm supposed to use it.</p>
  
  <p>I've tried this:</p>
  
  <pre><code>val timeString = "00:01:08.83"
  val df = SimpleDateFormat("HH:mm:ss.SS")
  df.parse(timeString)?.seconds!!.toFloat() // Returns 8.00, I want to have 68.83 for this example string
  </code></pre>
  
  <p>So is there a simple/efficient way of doing this ?</p>