Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
time function implementation
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 19 Dec 2006 16:31:37 +0000 (16:31 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 19 Dec 2006 16:31:37 +0000 (16:31 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3018 48e7efb5-ca39-0410-a469-dd3cf9ba447f

win32_test_app/src/TTime.c [new file with mode: 0644]

diff --git a/win32_test_app/src/TTime.c b/win32_test_app/src/TTime.c
new file mode 100644 (file)
index 0000000..97511a8
--- /dev/null
@@ -0,0 +1,12 @@
+#include <TTime.h>
+
+void __time(char* t)
+{
+
+       time_t timer;
+       struct tm *tblock;
+       timer = time(NULL);
+       tblock = localtime(&timer);
+       
+       sprintf(t,"%02d/%02d/%d  %02d:%02d",tblock->tm_mday,tblock->tm_mon,tblock->tm_year + 1900,tblock->tm_hour,tblock->tm_min);
+}
\ No newline at end of file