ok

Dependencies:   mbed

Fork of time_HelloWorld by mbed official

Revision:
1:bd5a5138e372
Parent:
0:b3b93997a0a6
--- a/main.cpp	Wed Feb 13 17:07:52 2013 +0000
+++ b/main.cpp	Fri Feb 07 17:05:27 2014 +0000
@@ -6,14 +6,14 @@
     while (true) {
         time_t seconds = time(NULL);
         
-        printf("Time as seconds since January 1, 1970 = %d\n", seconds);
+        printf("Time as seconds since January 1, 1970 = %d\r\n", seconds);
         
-        printf("Time as a basic string = %s", ctime(&seconds));
+        printf("Time as a basic string = %s\r\n", ctime(&seconds));
 
         char buffer[32];
         strftime(buffer, 32, "%I:%M %p\n", localtime(&seconds));
-        printf("Time as a custom formatted string = %s", buffer);
+        printf("Time as a custom formatted string = %s\r\n", buffer);
         
-        wait(1);
+        wait(60);
     }
 }