From 449622cd8fc09953ad9fa1c1c5f4d9a1369a68a8 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Fri, 24 Jul 2020 17:34:08 -0700 Subject: [PATCH] Added reference to calcReadingTimeInSec() function. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index d286b8e..c2d7cb2 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,12 @@ import net.thauvin.erik.readingtime.ReadingTime ... -val rt = ReadingTime(htmlText); -println(rt.calcEstimatedReadTime()) // Outputs: X min read +val rt = ReadingTime(htmlText) +println(rt.calcEstimatedReadTime()) // eg: 2 min read ``` -where X is the estimated reading time for the given text. +To get the estimated reading time in seconds use the `calcReadingTimeInSec()` function. - View [Kotlin](https://github.com/ethauvin/readingtime/blob/master/examples/src/main/kotlin/com/example/ReadingTimeExample.kt) or [Java](https://github.com/ethauvin/readingtime/blob/master/examples/src/main/java/com/example/ReadingTimeSample.java) Examples.