From 27c48490743bfa73ba347446eef80bf14753dea4 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Thu, 8 Feb 2024 17:59:22 +0100 Subject: [PATCH] add converter min to sec --- src/convert_time.c | 6 ++++++ src/convert_time.h | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 src/convert_time.c create mode 100644 src/convert_time.h diff --git a/src/convert_time.c b/src/convert_time.c new file mode 100644 index 0000000..e684f66 --- /dev/null +++ b/src/convert_time.c @@ -0,0 +1,6 @@ +#include "convert_time.h" + +double converter_min_to_sec(double min){ + double time = min / 60; + return time; +} \ No newline at end of file diff --git a/src/convert_time.h b/src/convert_time.h new file mode 100644 index 0000000..6ac0124 --- /dev/null +++ b/src/convert_time.h @@ -0,0 +1,6 @@ +#ifndef THEADMIRALS_CONVERT_TIME_H +#define THEADMIRALS_CONVERT_TIME_H + +double converter_min_to_sec(double min); + +#endif //THEADMIRALS_CONVERT_TIME_H