From 4afb15d04be8185f60745c64c710160bf4f6d76e Mon Sep 17 00:00:00 2001 From: Hinerk <hinerk.stender@mail.de> Date: Thu, 22 Aug 2019 22:18:51 +0200 Subject: [PATCH] add documentation and comments --- Documentation/pycardium/utime.rst | 5 +++++ epicardium/epicardium.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Documentation/pycardium/utime.rst b/Documentation/pycardium/utime.rst index ebcff6cc..a2900145 100644 --- a/Documentation/pycardium/utime.rst +++ b/Documentation/pycardium/utime.rst @@ -28,6 +28,11 @@ alarm. Return the current timestamp in seconds since 2000-01-01 00:00 in the local timezone. +.. py:function:: time_ms() + + Return the current timestamp in milliseconds since 2000-01-01 00:00 in + the local timezone. + .. py:function:: set_time(secs) Sets the time to ``secs`` seconds since 2000-01-01 00:00 in the local diff --git a/epicardium/epicardium.h b/epicardium/epicardium.h index 68c3ce29..e8176d81 100644 --- a/epicardium/epicardium.h +++ b/epicardium/epicardium.h @@ -1567,7 +1567,7 @@ API(API_FILE_MKDIR, int epic_file_mkdir(const char *dirname)); API(API_RTC_GET_SECONDS, uint32_t epic_rtc_get_seconds(void)); /** - * Read the current RTC value. + * Read the current RTC value in ms. * * :return: Unix time in milliseconds */ -- GitLab