<filename>src/format.cpp
#include <string>
#include <sstream>

#include "format.h"

using std::string;

// TODO: Complete this helper function
// INPUT: Long int measuring seconds
// OUTPUT: HH:MM:SS
// REMOVE: [[maybe_unused]] once you define the function
string Format::ElapsedTime(long seconds) { 
    int hours = seconds / 3600;
    int minutes = (seconds % 3600) / 60;
    int remainingSeconds = (seconds % 60);
    std::stringstream ss;
    ss << hours << ":" << minutes << ":" << remainingSeconds;
    string time = ss.str(); 
    return time;
}
