SpeedTest

class SpeedTest

Constructors

Link copied to clipboard
fun SpeedTest()

Functions

Link copied to clipboard

Given a url to download and the size of the file, calculates the download speed in KBps. Not accurate if time taken to download is less than a millisecond.

Link copied to clipboard
fun getSpeedTestScore(kilobytesPerSecond: Double?, scoreMap: SortedMap<Int, RangeLimits>): Int

Converts the given kilobytes per second into a score from 0-5 Where -1 is Error During Test and 1 is bad internet, 5 is best.