apps/dtnperf/utils.h
changeset 0 2b3e5ec03512
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/apps/dtnperf/utils.h	Thu Apr 21 14:57:45 2011 +0100
@@ -0,0 +1,29 @@
+#ifndef UTILS_H_
+#define UTILS_H_
+
+#include "includes.h"
+
+
+
+
+char* get_filename(char* s);
+void pattern(char *outBuf, int inBytes);
+
+
+long mega2byte(long n);
+long kilo2byte(long n);
+char find_data_unit(const char *inarg);
+
+
+void csv_time_report(int b_sent, int payload, struct timeval start, struct timeval end, FILE* csv_log);
+void csv_data_report(int b_id, int payload, struct timeval start, struct timeval end, FILE* csv_log);
+void show_report (u_int buf_len, char* eid, struct timeval start, struct timeval end, long data, FILE* output);
+
+
+void add_time(struct timeval *tot_time, struct timeval part_time);
+struct timeval set(double sec);
+struct timeval add(double sec);
+
+
+
+#endif /*UTILS_H_*/