Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/main.c Secret

Created March 16, 2022 02:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/971c85e6c021addbdb0febfa676f42b7 to your computer and use it in GitHub Desktop.
Save parzibyte/971c85e6c021addbdb0febfa676f42b7 to your computer and use it in GitHub Desktop.
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