diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-02-28 22:20:07 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-02-28 22:20:07 +0000 |
| commit | 0d3f5aae5b99832b7c5d55f32f5bccb365caa3fd (patch) | |
| tree | 674f3fe851d2ddd619102ca60c54bc1473a56ffe /src/lib/timer.cc | |
| parent | 8bb4ba8f424cac07f7730fca99d5333fcd76a84d (diff) | |
Various markup and tweaks.
Diffstat (limited to 'src/lib/timer.cc')
| -rw-r--r-- | src/lib/timer.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/lib/timer.cc b/src/lib/timer.cc index a45e80dcb..69a7e3aa9 100644 --- a/src/lib/timer.cc +++ b/src/lib/timer.cc @@ -26,6 +26,8 @@ #include "timer.h" #include "util.h" +#include "i18n.h" + using namespace std; /** @param n Name to use when giving output */ @@ -40,7 +42,7 @@ PeriodTimer::~PeriodTimer () { struct timeval stop; gettimeofday (&stop, 0); - cout << "T: " << _name << ": " << (seconds (stop) - seconds (_start)) << "\n"; + cout << N_("T: ") << _name << N_(": ") << (seconds (stop) - seconds (_start)) << N_("\n"); } /** @param n Name to use when giving output. @@ -80,10 +82,10 @@ StateTimer::~StateTimer () } - set_state (""); + set_state (N_("")); - cout << _name << ":\n"; + cout << _name << N_(":\n"); for (map<string, double>::iterator i = _totals.begin(); i != _totals.end(); ++i) { - cout << "\t" << i->first << " " << i->second << "\n"; + cout << N_("\t") << i->first << " " << i->second << N_("\n"); } } |
