proconlib

This documentation is automatically generated by competitive-verifier/competitive-verifier

View the Project on GitHub anqooqie/proconlib

:heavy_check_mark: The number of nanoseconds that have elapsed since epoch (tools/now.hpp)

long long now();

It returns the number of nanoseconds that have elapsed since epoch.

Constraints

Time Complexity

License

Author

Required by

Verified with

Code

#ifndef TOOLS_NOW_HPP
#define TOOLS_NOW_HPP

#include <chrono>

namespace tools {
  inline long long now() {
    return ::std::chrono::duration_cast<::std::chrono::nanoseconds>(::std::chrono::high_resolution_clock::now().time_since_epoch()).count();
  }
}

#endif
#line 1 "tools/now.hpp"



#include <chrono>

namespace tools {
  inline long long now() {
    return ::std::chrono::duration_cast<::std::chrono::nanoseconds>(::std::chrono::high_resolution_clock::now().time_since_epoch()).count();
  }
}


Back to top page