Depends, I kinda oversimplified my last post. TRIM just runs for a short while, indexes files on the drive and marks unnecessary ones, it takes seconds, maybe minutes. However, afterwards the garbage collector kicks in tidying what TRIM told it to tidy up. To simplify it all the whole process is basically called TRIM-ming though, even though there's more happening under the hood.
On SSDs on PCs it can take hours if it's really bad (undoing months of abuse) and may take a few runs, each is likely to get much shorter as it cleans up mostly what the previous one missed.
If it's all good and your disk hasn't been written to much since the last TRIM it's likely to finish in seconds. No idea about Android yet but you don't have to worry, it does its job by itself when you're not using your device and when you stop the trimming by unlocking it it'll just continue next time it gets a chance, after 24 hours.