summaryrefslogtreecommitdiff
path: root/2003/i/buzz/src/date/test_date.cc
diff options
context:
space:
mode:
authorschodet2003-09-10 20:12:26 +0000
committerschodet2003-09-10 20:12:26 +0000
commit5b1f702f012e9fcb0e64cdb6954759acc4c13e31 (patch)
treed3b17519aa0a583490e40275e7b6def498313313 /2003/i/buzz/src/date/test_date.cc
parent118063daa33bf4f365c62bf4a3f384e06466c980 (diff)
Aprés 2003
Diffstat (limited to '2003/i/buzz/src/date/test_date.cc')
-rw-r--r--2003/i/buzz/src/date/test_date.cc22
1 files changed, 22 insertions, 0 deletions
diff --git a/2003/i/buzz/src/date/test_date.cc b/2003/i/buzz/src/date/test_date.cc
new file mode 100644
index 0000000..51246a0
--- /dev/null
+++ b/2003/i/buzz/src/date/test_date.cc
@@ -0,0 +1,22 @@
+// test_date.cc
+// buzz - Programme du robot Efrei Robotique I1-I2 2003
+// Copyright (C) 2003 Nicolas Schodet
+//
+#include "date.h"
+
+#include <iostream>
+#include <unistd.h>
+
+int
+main (void)
+{
+ Date d;
+ sleep (2);
+ cout << "date " << d.start () << ' ' << d.round () << endl;
+ d.startRound ();
+ sleep (1);
+ cout << "date " << d.start () << ' ' << d.round () << endl;
+ sleep (2);
+ cout << "date " << d.start () << ' ' << d.round () << endl;
+ return 0;
+}