🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.c
Article #308974

Re: Milisekundy i mikrosekundy do logu

#308974
From: Borneq
Date: Mon, 16 Jan 2017 13:19
10 lines
1332 bytes
W dniu 16.01.2017 o 14:00, bartekltg pisze:
> Godzin,ę wyciagasz tak
> http://en.cppreference.com/w/cpp/chrono/time_point/time_since_epoch

std::time_t today_time = std::chrono::system_clock::to_time_t(p2);
std::cout << "today: " << std::ctime(&today_time);

fajne, jest czas, ale jak określić ile mikrosekund końcówki?
chrono jest w nanosekundach, więc trzeba wartość chrono % 1000000000
a sekunda to chrono / 1000000000 ?
Technical Details
Message-ID: <o5ih83$igi$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <o5dm4s$tln$1@node2.news.atman.pl> <o5ig5l$v5b$1@node1.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Borneq <borneq@antyspam.hidden.pl>
Newsgroups: pl.comp.lang.c
Subject: Re: Milisekundy i mikrosekundy do logu
Date: Mon, 16 Jan 2017 14:19:05 +0100
Organization: ATMAN - ATM S.A.
Lines: 10
Message-ID: <o5ih83$igi$1@node2.news.atman.pl>
References: <o5dm4s$tln$1@node2.news.atman.pl> <o5ig5l$v5b$1@node1.news.atman.pl>
NNTP-Posting-Host: 91.239.205.105
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1484572739 18962 91.239.205.105 (16 Jan 2017 13:18:59 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Mon, 16 Jan 2017 13:18:59 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
In-Reply-To: <o5ig5l$v5b$1@node1.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit