GetTimeDiference

Esta classe é responsável por obter a diferença em segundos entre um tempo inicial e final. Foi desenvolvido para calcular o tempo de resposta das requisições com a API.

Métodos

startTimer

Salva o tempo atual em uma variável privada start.

Exemplo

let timeDiference = GetTimeDiference.startTimer();

endTimer

Salva o tempo atual em uma variável privada end.

Exemplo

let timeDiference = GetTimeDiference.endTimer();

getTimeDiference

Retorna a diferença em segundos entre o tempo inicial e final.

Exemplo

let timeDiference = GetTimeDiference.getTimeDiference();
Last Updated:
Contributors: Weverton J. da Silva