gdb: Use C++11 std::chrono
[deliverable/binutils-gdb.git] / gdb / mi / mi-parse.h
index d5595b37e935292a509176b27a7469f1813998c2..dc8d21b5c6b8d019c3390aa3d2e8568ccc1a30ab 100644 (file)
 #ifndef MI_PARSE_H
 #define MI_PARSE_H
 
-#include "gdb_sys_time.h"
+#include "run-time-clock.h"
+#include <chrono>
 
 /* MI parser */
 
 /* Timestamps for current command and last asynchronous command.  */
-struct mi_timestamp {
-  struct timeval wallclock;
-  struct timeval utime;
-  struct timeval stime;
+struct mi_timestamp
+{
+  std::chrono::steady_clock::time_point wallclock;
+  user_cpu_time_clock::time_point utime;
+  system_cpu_time_clock::time_point stime;
 };
 
 enum mi_command_type
This page took 0.024364 seconds and 4 git commands to generate.