message: elle.Measure: clean up
  pragma once
  formatting changes
  default member values
diff: -#ifndef ELLE_MEASURE_HH
  -# define ELLE_MEASURE_HH
  +#pragma once
  #ifdef ELLE_WITH_MEASURE
  -# include <elle/memory.hh>
  -# include <elle/printf.hh>
  -
  # include <atomic>
  # include <chrono>
  # include <iostream>
  # include <string>
  +
  +# include <elle/memory.hh>
  +# include <elle/printf.hh>
  #endif
  #define ELLE_MEASURE_INSTANCE(_name) \
  @@ -35,27 +34,19 @@ namespace elle
  struct Measure
  {
  #ifdef ELLE_WITH_MEASURE
  - std::chrono::system_clock::time_point const start;
  - char const* file;
  - unsigned int line;
  - std::string const name;
  - bool done;
  -
  - Measure(char const* file,
  - unsigned int line,
  - std::string name):
  - start{std::chrono::system_clock::now()},
  - file{file},
  - line{line},
  - name{name},
  - done{false}
  - { _indent()++; }
  + Measure(char const* file, unsigned int line, std::string name)
  + : file{file}
  + , line{line}
  + , name{name}
  + {
  + _indent()++;
  + }
  void
  end()
  {
  - if (this->done)
  - return;
  + if (!this->done)
  + {
  this->done = true;
  using namespace std::chrono;
  auto d = duration_cast<milliseconds>(system_clock::now() - this->start);
  @@ -67,12 +58,19 @@ namespace elle
  this->line);
  _indent()--;
  }
  + }
  ~Measure()
  {
  this->end();
  }
  + char const* file;
  + unsigned int line;
  + std::string const name;
  + std::chrono::system_clock::time_point const start
  + = std::chrono::system_clock::now();
  + bool done = false;
  private:
  static
  @@ -90,5 +88,3 @@ namespace elle
  operator bool() const { return false; }
  };
  }
  -
  -#endif
  