Go to the documentation of this file.
38 description_(
"application::main"),
71 totalTime_ += elapsed;
73 if (id_ != parent_->id())
75 parent_->childTime_ += elapsed;
92 const scalar elapsedTime,
93 const scalar childTimes
101 os.
writeEntry(
"calls", calls() + (offset ? 1 : 0));
102 os.
writeEntry(
"totalTime", totalTime() + elapsedTime);
103 os.
writeEntry(
"childTime", childTime() + childTimes);
117 return info.
write(os);
Ostream & writeEntryIfDifferent(const word &key, const T &value1, const T &value2)
Write a keyword/value entry only when the two values differ.
Useful combination of include files which define Sin, Sout and Serr and the use of IO streams general...
A class for handling words, derived from Foam::string.
virtual Ostream & beginBlock(const keyType &kw)
Write begin block group with the given name.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
word name(const complex &c)
Return string representation of complex.
static const char * name(const bool b) noexcept
A string representation of bool as "false" / "true".
virtual Ostream & endBlock()
Write end block group.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...