blob: b45b41f8366420299be36375445f0fa246201095 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#import "NSDate+MGLAdditions.h"
mbgl::Duration MGLDurationFromTimeInterval(NSTimeInterval duration)
{
return std::chrono::duration_cast<mbgl::Duration>(std::chrono::duration<NSTimeInterval>(duration));
}
NSTimeInterval MGLTimeIntervalFromDuration(mbgl::Duration duration)
{
return std::chrono::duration<NSTimeInterval, std::ratio<1>>(duration).count();
}
|