Added reference to calcReadingTimeInSec() function.

This commit is contained in:
Erik C. Thauvin 2020-07-24 17:34:08 -07:00
parent cc58d82c4e
commit 449622cd8f

View file

@ -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.