diff options
Diffstat (limited to 'multimedia/jahshaka/files/patch-jah_libraries_jahtimer_jahtimer.cpp')
-rw-r--r-- | multimedia/jahshaka/files/patch-jah_libraries_jahtimer_jahtimer.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/multimedia/jahshaka/files/patch-jah_libraries_jahtimer_jahtimer.cpp b/multimedia/jahshaka/files/patch-jah_libraries_jahtimer_jahtimer.cpp deleted file mode 100644 index 9c86f21c1ce2..000000000000 --- a/multimedia/jahshaka/files/patch-jah_libraries_jahtimer_jahtimer.cpp +++ /dev/null @@ -1,31 +0,0 @@ ---- jah/libraries/jahtimer/jahtimer.cpp.orig -+++ jah/libraries/jahtimer/jahtimer.cpp -@@ -11,18 +11,22 @@ - - void JahTimer::starttime( void ) - { -- ftime(¤t_time); -- start_time = (int)current_time.millitm; -+struct timezone tz; - -- start_time_float = (double)current_time.time + ((double)current_time.millitm / 1000.0); -+ gettimeofday(¤t_time,&tz); -+ start_time = (int)current_time.tv_usec; -+ -+ start_time_float = (double)current_time.tv_sec + ((double)current_time.tv_usec / 1000.0); - - } - - void JahTimer::endtime ( void ) - { -- ftime(¤t_time); -- end_time = (int)current_time.millitm; -- end_time_float = (double)current_time.time + ((double)current_time.millitm / 1000.0); -+struct timezone tz; -+ -+ gettimeofday(¤t_time,&tz); -+ end_time = (int)current_time.tv_usec; -+ end_time_float = (double)current_time.tv_sec + ((double)current_time.tv_usec / 1000.0); - total_time_float = end_time_float - start_time_float; - } - |