| 282 | |
| 283 | template <typename T, typename Arg0, typename Arg1> |
| 284 | T Call(KernelContext*, Arg0 arg0, Arg1 arg1, Status*) const { |
| 285 | auto from = floor<Unit>(localizer_.template ConvertTimePoint<Duration>(arg0)); |
| 286 | auto to = floor<Unit>(localizer_.template ConvertTimePoint<Duration>(arg1)); |
| 287 | return static_cast<T>((to - from).count()); |
| 288 | } |
| 289 | |
| 290 | Localizer localizer_; |
| 291 | }; |