https://mooseframework.inl.gov
Loading...
Searching...
No Matches
TimedPrint.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "MooseError.h"
13
14#define CONTROLLED_CONSOLE_TIMED_PRINT(initial_wait, dot_interval, ...) \
15 mooseDeprecated("TIMED_PRINT is deprecated, use TIME_SECTION instead");
16
17#define CONSOLE_TIMED_PRINT(...) CONTROLLED_CONSOLE_TIMED_PRINT(1, 1, __VA_ARGS__)
18
20class TimedPrint final
21{
22public:
23 template <class StreamType, typename... Args>
24 TimedPrint(StreamType &, std::chrono::duration<double>, std::chrono::duration<double>, Args &&...)
25 {
26 mooseDeprecated("TimedPrint is deprecated, use TIME_SECTION instead");
27 }
28};
void mooseDeprecated(Args &&... args)
Emit a deprecated code/feature message with the given stringified, concatenated args.
Definition MooseError.h:363
Dummy TimedPrint Class - use TIME_SECTION instead.
Definition TimedPrint.h:21
TimedPrint(StreamType &, std::chrono::duration< double >, std::chrono::duration< double >, Args &&...)
Definition TimedPrint.h:24