summaryrefslogtreecommitdiffstats
path: root/statistics.h
diff options
context:
space:
mode:
authorGravatar Giorgio Marzano <marzano.giorgio@gmail.com>2015-10-11 15:37:28 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-10-18 17:37:49 -0700
commit44bdcffcd45904b621b37ffa6be0d7760173f492 (patch)
tree0cdb2ec1333d47c544735396e34b0e75451015ee /statistics.h
parent166d587197e9d1f227f603ed10de71bf06ccacb9 (diff)
downloadsubsurface-44bdcffcd45904b621b37ffa6be0d7760173f492.tar.gz
Display divetime according to dive mode and translation
Many time stats in maintab display also seconds in short freediving Signed-off-by: Giorgio Marzano <marzano.giorgio@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'statistics.h')
-rw-r--r--statistics.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/statistics.h b/statistics.h
index 4d14139e6..dbab25761 100644
--- a/statistics.h
+++ b/statistics.h
@@ -40,7 +40,7 @@ extern stats_t *stats_yearly;
extern stats_t *stats_monthly;
extern stats_t *stats_by_trip;
-extern char *get_time_string(int seconds, int maxdays);
+extern char *get_time_string_s(int seconds, int maxdays, bool freediving);
extern char *get_minutes(int seconds);
extern void process_all_dives(struct dive *dive, struct dive **prev_dive);
extern void get_selected_dives_text(char *buffer, int size);
@@ -48,6 +48,9 @@ extern void get_gas_used(struct dive *dive, volume_t gases[MAX_CYLINDERS]);
extern void process_selected_dives(void);
void selected_dives_gas_parts(volume_t *o2_tot, volume_t *he_tot);
+inline char *get_time_string(int seconds, int maxdays) {
+ return get_time_string_s( seconds, maxdays, false);
+}
#ifdef __cplusplus
}
#endif