Length in milliseconds of .wav from Sampler class


I’m having a bit of a problem trying to get the length of time in milliseconds of a .wav loaded into the Sampler class in Minim.

I’m probably over looking something but can it be found by something as simple as .length as with other UGens, or could it be worked out from the sample buffer?

Apologies if I’m asking a daft question, I’m having a bit of trouble working this out as I don’t seem to be able find a working example.

Many thanks for any tips.