I am using the Stopwatch Timer plugin (https://pub.dev/packages/stop_watch_timer) This plugin gives me time elapsed as a 'string'. So my text looks like:
00:00:03.45 // hours:minutes:seconds.milliseconds
Now I need to use this time information to calculate the score in the game. Do you know how I can convert this string into millisecond int so that i can use it to do math calculations?
My logic would be to multiple the time taken with another value to determine the score. THe more time user takes, the higher (poor) the score would be.
Any help is appreciated. Thanks