[videodb] remove unused seasons table from episode_view
[xbmc.git] / xbmc / platform / linux / TimeUtils.h
blobabbeb134511746bfb0838a51ef4267e54c323a09
1 /*
2 * Copyright (C) 2017-2018 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #pragma once
11 #include <cstdint>
12 #include <time.h>
14 namespace KODI
16 namespace LINUX
19 /**
20 * Calculate difference between two timespecs in nanoseconds
21 * \param start earlier time
22 * \param end later time
23 * \return (end - start) in nanoseconds
25 std::int64_t TimespecDifference(timespec const& start, timespec const& end);