Created
January 10, 2015 00:49
-
-
Save xaqq/0533f29d04726895fcfe to your computer and use it in GitHub Desktop.
This file contains 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 <chrono> | |
#include <iostream> | |
std::chrono::milliseconds operator""_ms(unsigned long long v) | |
{ | |
return std::chrono::milliseconds((long int)v); | |
} | |
int main() | |
{ | |
auto t = 150_ms; | |
std::cout << t.count() << std::endl; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment