projects
/
platform
/
core
/
uifw
/
libtbm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9697255
)
use MONOTONIC clock to get time
82/91382/2
accepted/tizen/common/20161011.154340
accepted/tizen/ivi/20161011.234251
accepted/tizen/mobile/20161011.234305
accepted/tizen/tv/20161011.234147
accepted/tizen/wearable/20161011.234205
submit/tizen/20161011.064900
author
SooChan Lim
<sc1.lim@samsung.com>
Fri, 7 Oct 2016 07:57:10 +0000
(16:57 +0900)
committer
Boram Park
<boram1288.park@samsung.com>
Tue, 11 Oct 2016 06:15:33 +0000
(23:15 -0700)
Change-Id: Ibd1ccb92ec42079c035caf744def690b58de8b88
src/tbm_surface_internal.c
patch
|
blob
|
history
diff --git
a/src/tbm_surface_internal.c
b/src/tbm_surface_internal.c
index
47a448f
..
6a086f8
100644
(file)
--- a/
src/tbm_surface_internal.c
+++ b/
src/tbm_surface_internal.c
@@
-67,7
+67,6
@@
void _tbm_surface_mutex_unlock(void);
}
/* LCOV_EXCL_START */
-#define USE_REALTIME 1
static double
_tbm_surface_internal_get_time(void)
@@
-75,11
+74,7
@@
_tbm_surface_internal_get_time(void)
struct timespec tp;
unsigned int time;
-#if USE_REALTIME
- clock_gettime(CLOCK_REALTIME, &tp);
-#else /* USE_MONOTONIC */
clock_gettime(CLOCK_MONOTONIC, &tp);
-#endif
time = (tp.tv_sec * 1000000L) + (tp.tv_nsec / 1000);
return time / 1000.0;