It’s been asked before here — but basically, there is a boost ptime function you can use, or a POSIX clock_gettime() function which can serve basically the same purpose.
Related Contents:
- How do I profile C++ code running on Linux?
- Sleep for milliseconds
- usr/bin/ld: cannot find -l
- Easily measure elapsed time
- Finding current executable’s path without /proc/self/exe
- Is there a C++ gdb GUI for Linux? [closed]
- C++ IDE for Linux? [closed]
- C++ Dynamic Shared Library on Linux
- What are the GCC default include directories?
- C++ error: undefined reference to ‘clock_gettime’ and ‘clock_settime’
- How do I find the location of the executable in C? [duplicate]
- How can I create directory tree in C++/Linux?
- How to disassemble a binary executable in Linux to get the assembly code?
- Difference between std::system_clock and std::steady_clock?
- Which is the best Linux C/C++ debugger (or front-end to gdb) to help teaching programming? [closed]
- Linking libstdc++ statically: any gotchas?
- Make a program run slowly
- How to set up googleTest as a shared library on Linux
- C++ Boost: undefined reference to boost::system::generic_category()
- How can I get the IP address of a (Linux) machine?
- How to programmatically cause a core dump in C/C++
- What exactly does GCC’s -Wpsabi option do? What are the implications of supressing it?
- Where are the man pages for C++? [closed]
- C++11: How to alias a function? [duplicate]
- How to enable core dump in my Linux C++ program [duplicate]
- How do you find what version of libstdc++ library is installed on your linux machine?
- C++ Cross-Platform High-Resolution Timer
- What is a good easy to use profiler for C++ on Linux? [closed]
- Illegal token on right side of ::
- What is the performance penalty of C++11 thread_local variables in GCC 4.8?
- .o files vs .a files
- How to get a stack trace for C++ using gcc with line number information?
- Get the compiler options from a compiled executable?
- How to increase thread priority in pthreads?
- 64 bit ntohl() in C++?
- How to run a bash script from C++ program
- How to pretty-print STL containers in GDB?
- How do I programmatically get the free disk space for a directory in Linux
- How to allocate thread local storage?
- Are child processes created with fork() automatically killed when the parent is killed?
- version `CXXABI_1.3.8′ not found (required by …) [duplicate]
- How to perform atomic operations on Linux that work on x86, arm, GCC and icc?
- What tools do you use to develop C++ applications on Linux? [closed]
- C++ cross-compiler from Windows to Linux [closed]
- Is it safe to fork from within a thread?
- Linux C++: how to profile time wasted due to cache misses?
- How to use the __attribute__((visibility(“default”)))?
- How to create a high resolution timer in Linux to measure program performance?
- Clearing terminal in Linux with C++ code
- libusb: error [op_open] getcap failed in C++ on Linux [closed]