Skip to content

Commit

Permalink
Merge pull request #8 from yashovardhan99/stopwatch-display-hotfix-1
Browse files Browse the repository at this point in the history
Stopwatch display hotfix 1
  • Loading branch information
yashovardhan99 authored Jan 2, 2019
2 parents 30372bf + eaa43de commit 98371f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions timeit/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ ext {
siteUrl = 'https://yashovardhan99.github.io/TimeIt'
gitUrl = 'https://github.com/yashovardhan99/TimeIt.git'

libraryVersion = '1.1.0'
libraryVersion = '1.1.1'

developerId = 'yashovardhan99'
developerName = 'Yashovardhan Dhanania'
Expand All @@ -48,8 +48,8 @@ android {
defaultConfig {
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
versionCode 1001001
versionName "1.1.1"

testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

Expand Down
4 changes: 2 additions & 2 deletions timeit/src/main/java/com/yashovardhan99/timeit/Stopwatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* Created by Yashovardhan99 on 8/12/18 as a part of TimeIt.
*
* @author Yashovardhan Dhanania
* @version 1.1
* @version 1.1.1
* @see java.lang.Runnable
*/
public class Stopwatch {
Expand Down Expand Up @@ -93,7 +93,7 @@ private static String getFormattedTime(long elapsedTime) {
displayTime.append(f.format(seconds)).append('.').append(f.format(milliseconds));

else if (hours == 0)
displayTime.append(f.format(minutes)).append(":").append(f.format(seconds)).append(f.format(milliseconds));
displayTime.append(f.format(minutes)).append(":").append(f.format(seconds)).append(".").append(f.format(milliseconds));

else
displayTime.append(hours).append(":").append(f.format(minutes)).append(":").append(f.format(seconds));
Expand Down

0 comments on commit 98371f9

Please sign in to comment.