comparison OrthancStone/Sources/Toolbox/TimerLogger.h @ 2068:22a83fb9dd23 deep-learning

added AlignedMatrix and TimerLogger
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 17 May 2023 17:30:52 +0200
parents
children
comparison
equal deleted inserted replaced
2067:20222330cdf6 2068:22a83fb9dd23
1 /**
2 * Stone of Orthanc
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics
4 * Department, University Hospital of Liege, Belgium
5 * Copyright (C) 2017-2022 Osimis S.A., Belgium
6 * Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium
7 *
8 * This program is free software: you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation, either version 3 of
11 * the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this program. If not, see
20 * <http://www.gnu.org/licenses/>.
21 **/
22
23
24 #pragma once
25
26 #include <boost/noncopyable.hpp>
27 #include <string>
28
29 #if defined(__EMSCRIPTEN__)
30 # include <emscripten.h>
31 #else
32 # include <boost/date_time/posix_time/posix_time_types.hpp>
33 #endif
34
35
36 namespace OrthancStone
37 {
38 class TimerLogger : public boost::noncopyable
39 {
40 private:
41 std::string name_;
42
43 #if defined(__EMSCRIPTEN__)
44 double start_;
45 #else
46 boost::posix_time::ptime start_;
47 #endif
48
49 public:
50 TimerLogger(const std::string& name);
51
52 ~TimerLogger();
53 };
54 }