time.hpp 520 Bytes
Newer Older
Matteo Spanio's avatar
update  
Matteo Spanio committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef GETTIMELABEL_H
#define GETTIMELABEL_H

#include <stdlib.h>

#include <string>

/**
 * @fn std::string getTimeLabel(int ms, std::string delim = ":")
 * @brief Convert an int representing milliseconds to the corresponding Time
 * Label string.
 *
 * @param ms the number of milliseconds.
 * @param delim the time separator
 * @return string the corresponding Time Label string.
 */
std::string getTimeLabel(int ms, std::string delim = ":");

int time_label_to_ms(std::string time_label);

#endif  // GETTIMELABEL_H