$sound().length returns a millisecond value. Also note that $asctime() is not useful in this context since it takes a $ctime value and returns a time value not a length value.