Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
oai
openairinterface5G
Commits
eeefd614
Commit
eeefd614
authored
May 27, 2016
by
Cédric Roux
Browse files
let's print nanosecond in times of textlog instead of closest millisecond
parent
32302fc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/utils/T/tracer/logger/textlog.c
View file @
eeefd614
...
...
@@ -47,8 +47,8 @@ static void _event(void *p, event e)
#ifdef T_SEND_TIME
t
=
localtime
(
&
e
.
sending_time
.
tv_sec
);
/* round tv_nsec to nearest millisecond */
sprintf
(
tt
,
"%2.2d:%2.2d:%2.2d.%
3.3
d: "
,
t
->
tm_hour
,
t
->
tm_min
,
t
->
tm_sec
,
(
int
)((
e
.
sending_time
.
tv_nsec
/
(
1000000
/
2
)
+
1
)
/
2
)
);
sprintf
(
tt
,
"%2.2d:%2.2d:%2.2d.%
9.9l
d: "
,
t
->
tm_hour
,
t
->
tm_min
,
t
->
tm_sec
,
e
.
sending_time
.
tv_nsec
);
PUTS
(
&
l
->
o
,
tt
);
#endif
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment