Add getDuration() function

Related-To: PRODX-10059
Change-Id: Ic5ac382e11e22a7ecb72192f8f040ab7c0fdca49
1 file changed