mirror of
https://github.com/DanielSWolf/rhubarb-lip-sync.git
synced 2026-11-21 12:25:08 +00:00
22 lines
769 B
C++
22 lines
769 B
C++
#pragma once
|
|
|
|
#include "centiseconds.h"
|
|
#include "TimeRange.h"
|
|
#include "Timed.h"
|
|
#include "logging/logging.h"
|
|
|
|
template<typename TValue>
|
|
void logTimedEvent(const std::string& eventName, const Timed<TValue> timedValue) {
|
|
logging::debugFormat("##{0}[{1}-{2}]: {3}",
|
|
eventName, formatDuration(timedValue.getStart()), formatDuration(timedValue.getEnd()), timedValue.getValue());
|
|
}
|
|
|
|
template<typename TValue>
|
|
void logTimedEvent(const std::string& eventName, const TimeRange& timeRange, const TValue& value) {
|
|
logTimedEvent(eventName, Timed<TValue>(timeRange, value));
|
|
}
|
|
|
|
template<typename TValue>
|
|
void logTimedEvent(const std::string& eventName, centiseconds start, centiseconds end, const TValue& value) {
|
|
logTimedEvent(eventName, Timed<TValue>(start, end, value));
|
|
} |