MCPcopy Create free account
hub / github.com/OpenGene/fastp / getCurrentSystemTime

Method getCurrentSystemTime

src/htmlreporter.cpp:612–621  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610}
611
612const string HtmlReporter::getCurrentSystemTime()
613{
614 auto tt = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
615 struct tm* ptm = localtime(&tt);
616 char date[60] = {0};
617 sprintf(date, "%d-%02d-%02d %02d:%02d:%02d",
618 (int)ptm->tm_year + 1900,(int)ptm->tm_mon + 1,(int)ptm->tm_mday,
619 (int)ptm->tm_hour,(int)ptm->tm_min,(int)ptm->tm_sec);
620 return std::string(date);
621}
622
623void HtmlReporter::printFooter(ofstream& ofs){
624 ofs << "\n</div>" << endl;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected