-
-
Save parzibyte/971c85e6c021addbdb0febfa676f42b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main() | |
{ | |
time_t inicio = time(NULL); | |
printf("Inicio: %llu\n", inicio); | |
printf("Presiona Enter cuando quieras\n"); | |
// Esperar a que el usuario presione Enter. Realmente esta espera podría ser cualquiera | |
// y podría ser en cualquier circunstancia | |
getchar(); | |
time_t fin = time(NULL); | |
time_t diferencia = fin - inicio; | |
imprimirDiferencia(diferencia); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment