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.
main.cpp@0:eb8bb5ba6023, 2009-10-28 (annotated)
- Committer:
- simon
- Date:
- Wed Oct 28 22:54:37 2009 +0000
- Revision:
- 0:eb8bb5ba6023
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| simon | 0:eb8bb5ba6023 | 1 | #include "mbed.h" |
| simon | 0:eb8bb5ba6023 | 2 | |
| simon | 0:eb8bb5ba6023 | 3 | int main() { |
| simon | 0:eb8bb5ba6023 | 4 | while(1) { |
| simon | 0:eb8bb5ba6023 | 5 | time_t seconds = time(NULL); |
| simon | 0:eb8bb5ba6023 | 6 | printf("Seconds since January 1, 1970: %d\n", seconds); |
| simon | 0:eb8bb5ba6023 | 7 | wait(1); |
| simon | 0:eb8bb5ba6023 | 8 | } |
| simon | 0:eb8bb5ba6023 | 9 | } |