[utils] add getLocaltime function
authorSeungbaek Hong <sb92.hong@samsung.net>
Mon, 19 Dec 2022 08:15:29 +0000 (17:15 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Thu, 22 Dec 2022 23:58:40 +0000 (08:58 +0900)
commitcac78bfa9aae4724ca51742a9acfeb88767145ea
tree123dc09a69942e9d3fca6c79a8598f09114d5052
parentd816cde3965e3a68bf775badd09e7c8d1e7ea509
[utils] add getLocaltime function

Because windows doesn't support "localtime_r" function, The "getLocaltime"
function was added to use the "localtime_s" function in windows and the
"localtime_r" function in linux.

**Self evaluation:**
1. Build test: [x]Passed []Failed []Skipped
2. Run test: [x]Passed []Failed []Skipped

Signed-off-by: Seungbaek Hong <sb92.hong@samsung.net>
nntrainer/nntrainer_logger.cpp
nntrainer/utils/util_func.cpp
nntrainer/utils/util_func.h