Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 31:31557ab8116e, committed 2019-10-22
- Comitter:
- isaacross99
- Date:
- Tue Oct 22 19:39:02 2019 +0000
- Parent:
- 30:f7518060fc89
- Commit message:
- MATRIZ 3X3 CON TIEMPO
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f7518060fc89 -r 31557ab8116e main.cpp --- a/main.cpp Tue Oct 22 19:20:06 2019 +0000 +++ b/main.cpp Tue Oct 22 19:39:02 2019 +0000 @@ -1,6 +1,7 @@ #include "mbed.h" Serial pc(USBTX,USBRX); +Timer reloj1; int main(){ const int filas=3; @@ -9,6 +10,8 @@ int i,j; int contador=0; + reloj1.start(); + for (i=0;i<filas;i++) { for (j=0;j<columnas;j++) @@ -18,6 +21,8 @@ } pc.printf("\n"); } - + wait(1); + reloj1.stop(); + pc.printf("El tiempo de ejecucion es de %f en segundos \n", reloj1.read()); } \ No newline at end of file