#include "time.hpp"
#include <type_traits>
namespace sprawl
{
namespace time
{
int64_t Convert(int64_t time, Resolution fromResolution, Resolution toResolution)
{
return (time * std::underlying_type<Resolution>::type(fromResolution)) / std::underlying_type<Resolution>::type(toResolution);
}
}
}
# |
Change |
User |
Description |
Committed |
|
#1
|
23398 |
ququlala |
"Forking branch Mainline of shadauxcat-libsprawl to ququlala-libsprawl." |
|
|
//guest/ShadauxCat/Sprawl/Mainline/time/time.cpp |
#1
|
11500 |
ShadauxCat |
Added sprawl::time library.
Fixed JSON Unit Test bug. |
|
|