1+ /*
2+ Tool1CD library provides access to 1CD database files.
3+ Copyright © 2009-2017 awa
4+ Copyright © 2017-2018 E8 Tools contributors
5+
6+ This file is part of Tool1CD Library.
7+
8+ Tool1CD Library is free software: you can redistribute it and/or modify
9+ it under the terms of the GNU Lesser General Public License as published by
10+ the Free Software Foundation, either version 3 of the License, or
11+ (at your option) any later version.
12+
13+ Tool1CD Library is distributed in the hope that it will be useful,
14+ but WITHOUT ANY WARRANTY; without even the implied warranty of
15+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+ GNU Lesser General Public License for more details.
17+
18+ You should have received a copy of the GNU Lesser General Public License
19+ along with Tool1CD Library. If not, see <http://www.gnu.org/licenses/>.
20+ */
121#include " GetTickCount.hpp"
222
323#ifdef _WIN32
@@ -10,20 +30,20 @@ namespace System {
1030
1131namespace Classes {
1232
13- // (c) http://www.doctort.org/adam/nerd-notes/linux-equivalent-of-the-windows-gettickcount-function.html
14- unsigned long GetTickCount ()
33+ // (c) http://www.doctort.org/adam/nerd-notes/linux-equivalent-of-the-windows-gettickcount-function.html
34+ unsigned long GetTickCount ()
1535{
1636 #ifdef _WIN32
1737 return (unsigned long )(::GetTickCount ());
18- #else
38+ #else
1939 struct timeval tv;
2040 if (gettimeofday (&tv, nullptr ) != 0 ) {
2141 return 0 ;
2242 }
2343
2444 return (tv.tv_sec * 1000 ) + (tv.tv_usec / 1000 );
2545 #endif // _WIN32
26- }
46+ }
2747
2848} // Classe
2949
0 commit comments