MFEM
v3.3.2
Finite element discretization library
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Pages
general
tic_toc.hpp
Go to the documentation of this file.
1
// Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
2
// the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
3
// reserved. See file COPYRIGHT for details.
4
//
5
// This file is part of the MFEM library. For more information and source code
6
// availability see http://mfem.org.
7
//
8
// MFEM is free software; you can redistribute it and/or modify it under the
9
// terms of the GNU Lesser General Public License (as published by the Free
10
// Software Foundation) version 2.1 dated February 1999.
11
12
#ifndef MFEM_TIC_TOC
13
#define MFEM_TIC_TOC
14
15
#include "../config/config.hpp"
16
17
#ifndef MFEM_TIMER_TYPE
18
#ifndef _WIN32
19
#define MFEM_TIMER_TYPE 0
20
#else
21
#define MFEM_TIMER_TYPE 3
22
#endif
23
#endif
24
25
namespace
mfem
26
{
27
28
namespace
internal
29
{
30
class
StopWatch;
31
}
32
33
/// Timing object
34
class
StopWatch
35
{
36
private
:
37
internal::StopWatch *M;
38
39
public
:
40
StopWatch
();
41
void
Clear
();
42
void
Start
();
43
void
Stop
();
44
double
Resolution
();
45
double
RealTime
();
46
double
UserTime
();
47
double
SystTime
();
48
~StopWatch
();
49
};
50
51
52
extern
StopWatch
tic_toc
;
53
54
/// Start timing
55
extern
void
tic
();
56
57
/// End timing
58
extern
double
toc
();
59
60
}
61
62
#endif
mfem::StopWatch::~StopWatch
~StopWatch()
Definition:
tic_toc.cpp:441
mfem::tic_toc
StopWatch tic_toc
Definition:
tic_toc.cpp:447
mfem::StopWatch::RealTime
double RealTime()
Definition:
tic_toc.cpp:426
mfem::StopWatch::Stop
void Stop()
Definition:
tic_toc.cpp:416
mfem::StopWatch::UserTime
double UserTime()
Definition:
tic_toc.cpp:431
mfem::StopWatch
Timing object.
Definition:
tic_toc.hpp:34
mfem::StopWatch::Resolution
double Resolution()
Definition:
tic_toc.cpp:421
mfem::StopWatch::Start
void Start()
Definition:
tic_toc.cpp:411
mfem::StopWatch::StopWatch
StopWatch()
Definition:
tic_toc.cpp:401
mfem::tic
void tic()
Start timing.
Definition:
tic_toc.cpp:449
mfem::toc
double toc()
End timing.
Definition:
tic_toc.cpp:455
mfem::StopWatch::Clear
void Clear()
Definition:
tic_toc.cpp:406
mfem::StopWatch::SystTime
double SystTime()
Definition:
tic_toc.cpp:436
Generated on Fri Feb 18 2022 19:42:05 for MFEM by
1.8.5