You could type
"length(comparison)(time)" in the
beatmap listing (or just to the search bar ingame)
Whereas (comparison) should be one of those:
= or ==: Equal to
!=: Not equal to
<: Less than
>: Greater than
<=: Less than or equal to
>=: Greater than or equal to
And (time) would be the duration of the song you prefer
For example, if i want to search songs that is longer than 3 minutes (180 seconds) I'd type something like this

(you could also use another filters that are listed
here.)