Skip to content
Snippets Groups Projects
Commit fc9321a4 authored by Hinerk's avatar Hinerk
Browse files

approaching code quality

parent 19163eae
No related branches found
No related tags found
1 merge request!201micropython utime method for milliseconds since epoche
......@@ -45,8 +45,8 @@ MP_DEFINE_CONST_FUN_OBJ_0(time_time_obj, time_time);
static mp_obj_t time_time_ms(void)
{
uint64_t milliseconds;
milliseconds = epic_rtc_get_milliseconds()
- (EPOCH_OFFSET + TZONE_OFFSET) * 1000ULL;
milliseconds = epic_rtc_get_milliseconds() -
(EPOCH_OFFSET + TZONE_OFFSET) * 1000ULL;
return mp_obj_new_int_from_ull(milliseconds);
}
MP_DEFINE_CONST_FUN_OBJ_0(time_time_ms_obj, time_time_ms);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment