From ac8b4e8390cd985e643b2e9c6b36b19aa3f1dbf4 Mon Sep 17 00:00:00 2001 From: yashovardhan99 Date: Thu, 3 Jan 2019 00:55:52 +0530 Subject: [PATCH 1/2] Fixed display error where seconds and ms were not separated Signed-off-by: yashovardhan99 --- timeit/src/main/java/com/yashovardhan99/timeit/Stopwatch.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timeit/src/main/java/com/yashovardhan99/timeit/Stopwatch.java b/timeit/src/main/java/com/yashovardhan99/timeit/Stopwatch.java index 5a3f13d..8beb03b 100644 --- a/timeit/src/main/java/com/yashovardhan99/timeit/Stopwatch.java +++ b/timeit/src/main/java/com/yashovardhan99/timeit/Stopwatch.java @@ -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)); From eaa43de6cd38984d6a968bd21c620d2516be36cb Mon Sep 17 00:00:00 2001 From: yashovardhan99 Date: Thu, 3 Jan 2019 01:01:12 +0530 Subject: [PATCH 2/2] Updated version Signed-off-by: yashovardhan99 --- timeit/build.gradle | 6 +++--- .../src/main/java/com/yashovardhan99/timeit/Stopwatch.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/timeit/build.gradle b/timeit/build.gradle index 5e4da31..c6d61f1 100644 --- a/timeit/build.gradle +++ b/timeit/build.gradle @@ -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' @@ -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" diff --git a/timeit/src/main/java/com/yashovardhan99/timeit/Stopwatch.java b/timeit/src/main/java/com/yashovardhan99/timeit/Stopwatch.java index 8beb03b..13d45b4 100644 --- a/timeit/src/main/java/com/yashovardhan99/timeit/Stopwatch.java +++ b/timeit/src/main/java/com/yashovardhan99/timeit/Stopwatch.java @@ -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 {