heartandsole.Activity.time.timer

Activity.time.timer(source='summary')[source]

Return total time, in seconds, when the device was active.

Parameters

source (str) –

Source from which to obtain timer time.

  • summary (default): timer value in the summary Series.

  • laps: sum of the timer column in the laps DataFrame.

Returns

Timer time according to the requested source. If the Activity does not possess the requested data source, return None.

Return type

int or None

Raises

ValueError – If source is not a valid option.