<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def duration(self):
 """The test duration in seconds."""

        self._duration = self.lib.iperf_get_test_duration(self._test)
        return self._duration