public static final long timeToLong(String timeString){
  RaptorStringTokenizer tok=new RaptorStringTokenizer(timeString,"(:.)",true);
  long minutes=Integer.parseInt(tok.nextToken());
  long seconds=Integer.parseInt(tok.nextToken());
  long millis=Integer.parseInt(tok.nextToken());
  return minutes * 1000 * 60 + seconds * 1000 + millis;
}

public static final long timeToLong ( String timeString ) { RaptorStringTokenizer tok = new RaptorStringTokenizer ( timeString , "(:.)" , true ) ; long minutes = Integer . parseInt ( tok . nextToken ( ) ) ; long seconds = Integer . parseInt ( tok . nextToken ( ) ) ; long millis = Integer . parseInt ( tok . nextToken ( ) ) ; return minutes * 1000 * 60 + seconds * 1000 + millis ; }
converts a time in : ( 0 : 00 . 000 ) mmm : ss . mmm format into a long value representing milliseconds .
