-
Boman Romain authoredBoman Romain authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
wTimers.h 1.04 KiB
/*
* Copyright 2020 University of Liège
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef WTIMERS_H
#define WTIMERS_H
#include "fwk.h"
#include "wObject.h"
#include "wTimer.h"
#include <map>
namespace fwk
{
/**
* @brief list of named timers
*/
class FWK_API Timers : public wObject
{
std::map<std::string, Timer> timers;
public:
Timers();
void reset();
#ifndef SWIG
Timer &operator[](std::string const &name);
virtual void write(std::ostream &out) const override;
#endif
};
}; // namespace fwk
#endif // TIMERS_H