Merge pull request #6 from plex1/master

updated main.cpp
This commit is contained in:
Dolu1990 2017-10-18 00:17:49 +02:00 committed by GitHub
commit 9d75349d7a
1 changed files with 2 additions and 0 deletions

View File

@ -19,6 +19,8 @@
#include <time.h> #include <time.h>
using namespace std;
struct timespec timer_get(){ struct timespec timer_get(){
struct timespec start_time; struct timespec start_time;
clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &start_time); clock_gettime(CLOCK_PROCESS_CPUTIME_ID, &start_time);