intirain 4 лет назад
Родитель
Сommit
6d04d75505
2 измененных файлов с 4 добавлено и 2 удалено
  1. 3 1
      include/vcc/vccd.h
  2. 1 1
      include/vcc/version.h

+ 3 - 1
include/vcc/vccd.h

@@ -25,8 +25,10 @@
 #include <stdio.h>
 #include <stdio.h>
 #include <arpa/inet.h>
 #include <arpa/inet.h>
 #include <vcc/vcc.h>
 #include <vcc/vcc.h>
+#include <sys/times.h>
+
+#define vcc_log(msg, ...) 	fprintf(stderr, "[%ld] " msg, times(NULL), ##__VA_ARGS__)
 
 
-#define vcc_log(msg, ...) 	fprintf(stderr, msg, ##__VA_ARGS__)
 
 
 int vcc_new_connection(int fd, struct in_addr *addr);
 int vcc_new_connection(int fd, struct in_addr *addr);
 int vcc_close_connection(int fd);
 int vcc_close_connection(int fd);

+ 1 - 1
include/vcc/version.h

@@ -1 +1 @@
-#define VCCD_VERSION "vccd 0.2.0 Sun Mar  6 08:14:27 CST 2022 root"
+#define VCCD_VERSION "vccd 0.2.0 Sun Mar  6 12:20:25 CST 2022 root"