by the time; for as long as
Tom já estava lá pelo tempo que cheguei lá.
Tom was already there by the time I arrived.
Tom estava muito cansado pelo tempo que chegou em casa.
Tom was very tired by the time he got home.
Você pode ficar em Boston pelo tempo que quiser.
You can stay in Boston for as long as you like.
Tom estará dormindo pelo tempo que eu chegar em casa.
Tom will be sleeping by the time I get home.
Você pode ficar em Boston pelo tempo que você quiser.
You can stay in Boston for as long as you like.