Created
December 20, 2015 01:26
-
-
Save dloman/455071b64ce2bb2f5f14 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <chrono> | |
using namespace std; | |
int main() | |
{ | |
typedef chrono::duration<unsigned long, milli> milliseconds_t; | |
typedef chrono::duration<unsigned long> seconds_t; | |
milliseconds_t Milliseconds(11111); | |
seconds_t Seconds(chrono::duration_cast<seconds_t> (Milliseconds)); | |
cout << Milliseconds.count() << endl; | |
cout << Seconds.count() << endl; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment