Added a READABLE time string conversion

This commit is contained in:
Bruno
2021-08-11 00:17:07 +02:00
parent 63c6f1169b
commit 7fb08e618f
2 changed files with 24 additions and 2 deletions

View File

@@ -12,7 +12,8 @@ namespace GstToolkit
typedef enum {
TIME_STRING_FIXED = 0,
TIME_STRING_ADJUSTED,
TIME_STRING_MINIMAL
TIME_STRING_MINIMAL,
TIME_STRING_READABLE
} time_string_mode;
std::string time_to_string(guint64 t, time_string_mode m = TIME_STRING_ADJUSTED);