1 /* This file is part of Clementine.
2    Copyright 2011-2012, David Sansome <me@davidsansome.com>
3    Copyright 2014, Krzysztof Sobiecki <sobkas@gmail.com>
4    Copyright 2014, John Maguire <john.maguire@gmail.com>
5 
6    Licensed under the Apache License, Version 2.0 (the "License");
7    you may not use this file except in compliance with the License.
8    You may obtain a copy of the License at
9 
10        http://www.apache.org/licenses/LICENSE-2.0
11 
12    Unless required by applicable law or agreed to in writing, software
13    distributed under the License is distributed on an "AS IS" BASIS,
14    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15    See the License for the specific language governing permissions and
16    limitations under the License.
17 */
18 
19 // Note: this file is licensed under the Apache License instead of GPL because
20 // it is used by the Spotify blob which links against libspotify and is not GPL
21 // compatible.
22 
23 #ifndef CORE_TIMECONSTANTS_H_
24 #define CORE_TIMECONSTANTS_H_
25 
26 #include <QtGlobal>
27 
28 // Use these to convert between time units
29 const qint64 kMsecPerSec = 1000ll;
30 const qint64 kUsecPerMsec = 1000ll;
31 const qint64 kUsecPerSec = 1000000ll;
32 const qint64 kNsecPerUsec = 1000ll;
33 const qint64 kNsecPerMsec = 1000000ll;
34 const qint64 kNsecPerSec = 1000000000ll;
35 
36 const qint64 kSecsPerDay = 24 * 60 * 60;
37 
38 #endif  // CORE_TIMECONSTANTS_H_
39