Isaac Cruz / Mbed 2 deprecated matriz

Dependencies:   mbed

Files at this revision

API Documentation at this revision

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