o altrimenti usi la funzione GetTickCount() che è anche più semplice