This class can be used to perform several calculations such as speed and pace for activities such as running, swimming or cycling.
It takes as parameters the distance, the distance units, and the time split in seconds, minutes and hours.
The class can calculate:
- The split time in hours, minutes or seconds
- The distance in several units
- The average pace and speed formatted in given units
- All time splits within a given time interval
This class is a tool to handle speed and pace calculations from time and distance data where the units required are variable. This ideal for running, biking, swimming activities. |