rhubarb-lip-sync/src/tools.h

14 lines
328 B
C
Raw Normal View History

#pragma once
#include <functional>
#include <memory>
2016-03-01 20:57:05 +00:00
#include <chrono>
#define UNUSED(x) ((void)(x))
template<typename T>
using lambda_unique_ptr = std::unique_ptr<T, std::function<void(T*)>>;
2016-03-01 20:57:05 +00:00
std::string formatDuration(std::chrono::duration<double> seconds);
std::string formatTime(time_t time, const std::string& format);