summaryrefslogtreecommitdiffstatshomepage
path: root/windows/windows_mphal.h
diff options
context:
space:
mode:
authorstijn <stijn@ignitron.net>2016-11-01 10:25:13 +0100
committerstijn <stijn@ignitron.net>2016-11-03 10:31:58 +0100
commit3272afe57f3303ee178c6d0a3d08614a2a154e4e (patch)
treeb97589f69878e077f1b297448c56627c747869fe /windows/windows_mphal.h
parent0b9ed550267ca0efba094d14c250f268d744818d (diff)
downloadmicropython-3272afe57f3303ee178c6d0a3d08614a2a154e4e.tar.gz
micropython-3272afe57f3303ee178c6d0a3d08614a2a154e4e.zip
windows: Implement mp_hal_ticks_cpu in terms of QueryPerformanceCounter
Diffstat (limited to 'windows/windows_mphal.h')
-rw-r--r--windows/windows_mphal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/windows/windows_mphal.h b/windows/windows_mphal.h
index a17f170214..854e14a7a8 100644
--- a/windows/windows_mphal.h
+++ b/windows/windows_mphal.h
@@ -32,5 +32,5 @@
void mp_hal_move_cursor_back(unsigned int pos);
void mp_hal_erase_line_from_cursor(unsigned int n_chars_to_erase);
-// TODO: Implement.
-#define mp_hal_ticks_cpu() 0
+#undef mp_hal_ticks_cpu
+mp_uint_t mp_hal_ticks_cpu(void);