| /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */ |
| * Copyright (C) 2013 Regents of the University of California. |
| * @author: Jeff Thompson <jefft0@remap.ucla.edu> |
| * See COPYING for copyright and distribution information. |
| #include <ndn-cpp-dev/common.hpp> |
| #if NDN_CPP_HAVE_SYS_TIME_H |
| toHex(const vector<uint8_t>& array) |
| result.flags(ios::hex | ios::uppercase); |
| for (size_t i = 0; i < array.size(); ++i) { |
| result << (unsigned int)x; |
| // Note: configure.ac requires gettimeofday. |
| return t.tv_sec * 1000.0 + t.tv_usec / 1000.0; |