From 67ffbb8c24f4f1bda8e20d7f3731b4815e6bbb05 Mon Sep 17 00:00:00 2001 From: Jonas Zitzmann Date: Thu, 8 Feb 2024 18:12:10 +0100 Subject: [PATCH] add new converter --- src/convert_time.c | 5 +++++ src/convert_time.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/convert_time.c b/src/convert_time.c index 9381271..22b705a 100644 --- a/src/convert_time.c +++ b/src/convert_time.c @@ -4,3 +4,8 @@ double converter_sec_to_min(double sec){ double time = sec / 60; return time; } + +double converter_min_to_sec(double min){ + double time = min * 60; + return time; +} diff --git a/src/convert_time.h b/src/convert_time.h index 190a814..bbadf16 100644 --- a/src/convert_time.h +++ b/src/convert_time.h @@ -2,5 +2,6 @@ #define THEADMIRALS_CONVERT_TIME_H double converter_sec_to_min(double sec); +double converter_min_to_sec(double min); #endif //THEADMIRALS_CONVERT_TIME_H