Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 20th, 2012  |  syntax: None  |  size: 0.29 KB  |  hits: 6  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1.         string OTAPI::GetTime()
  2. {
  3.         long lTime = OT_API::It().GetTime();
  4.  
  5.         OTString strTime;
  6.         strTime.Format("%ld", lTime);
  7.  
  8.         std::string str = strTime.Get();
  9.         std::vector<char> writable(str.size() + 1);
  10.  
  11.  
  12.         std::move(str.begin(), str.end(), writable.begin());
  13.  
  14.         return &*writable.begin();
  15. }