%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/thread-self/root/lib/python3/dist-packages/pythran/pythonic/time/
Upload File :
Create Path :
Current File : //proc/thread-self/root/lib/python3/dist-packages/pythran/pythonic/time/time.hpp

#ifndef PYTHONIC_TIME_TIME_HPP
#define PYTHONIC_TIME_TIME_HPP

#include "pythonic/include/time/time.hpp"
#include "pythonic/utils/functor.hpp"

#include <chrono>

PYTHONIC_NS_BEGIN

namespace time
{

  double time()
  {
    std::chrono::time_point<std::chrono::steady_clock> tp =
        std::chrono::steady_clock::now();
    return std::chrono::duration_cast<std::chrono::milliseconds>(
               tp.time_since_epoch()).count() /
           1000.;
  }
}
PYTHONIC_NS_END

#endif

Zerion Mini Shell 1.0