Skip to content
Snippets Groups Projects
Commit 7778a898 authored by Dr. Felix Tobias Schindler's avatar Dr. Felix Tobias Schindler
Browse files

[python] fix timings

parent 5b56ec34
No related branches found
No related tags found
No related merge requests found
......@@ -20,3 +20,6 @@ for mod_name in (
):
guarded_import(globals(), 'dune.xt.common', mod_name)
# make sure the singleton exists
timings()
......@@ -45,5 +45,5 @@ PYBIND11_MODULE(_timings, m)
.def("output_all_measures",
[](Timings& self) { self.output_all_measures(); },
"outputs per rank and global averages of all measures");
m.def("instance", &timings, py::return_value_policy::reference);
m.def("timings", &timings, py::return_value_policy::reference);
}
# ~~~
# This file is part of the dune-xt-common project:
# https://github.com/dune-community/dune-xt-common
# Copyright 2009-2018 dune-xt-common developers and contributors. All rights reserved.
# License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
# or GPL-2.0+ (http://opensource.org/licenses/gpl-license)
# with "runtime exception" (http://www.dune-project.org/license.html)
# Authors:
# René Fritze (2018)
# ~~~
from dune.xt._timings import *
timings = instance()
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment