Browse Source

add new converter

remotes/origin/develop
Jonas Zitzmann 11 months ago
parent
commit
67ffbb8c24
  1. 5
      src/convert_time.c
  2. 1
      src/convert_time.h

5
src/convert_time.c

@ -4,3 +4,8 @@ double converter_sec_to_min(double sec){
double time = sec / 60; double time = sec / 60;
return time; return time;
} }
double converter_min_to_sec(double min){
double time = min * 60;
return time;
}

1
src/convert_time.h

@ -2,5 +2,6 @@
#define THEADMIRALS_CONVERT_TIME_H #define THEADMIRALS_CONVERT_TIME_H
double converter_sec_to_min(double sec); double converter_sec_to_min(double sec);
double converter_min_to_sec(double min);
#endif //THEADMIRALS_CONVERT_TIME_H #endif //THEADMIRALS_CONVERT_TIME_H
Loading…
Cancel
Save