Skip to content

Instantly share code, notes, and snippets.

@chiro
Created April 23, 2014 12:50
Show Gist options
  • Save chiro/11214000 to your computer and use it in GitHub Desktop.
Save chiro/11214000 to your computer and use it in GitHub Desktop.
#include <chrono>
#include <iostream>
using namespace std;
int main() {
auto millis_since_epoch = chrono::duration_cast<chrono::milliseconds>(
chrono::system_clock::now().time_since_epoch()).count();
cout << millis_since_epoch << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment