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