view src/platform/time.h @ 4:352169b06523

update
author Takahiro SHIMIZU <anatofuz@cr.ie.u-ryukyu.ac.jp>
date Fri, 05 Oct 2018 19:31:02 +0900 (2018-10-05)
parents 2cf249471370
children
line wrap: on
line source
/* Gets time since the epoch in nanoseconds.
 * In principle, may return 0 on error.
 */
MVMuint64 MVM_platform_now(void);

/* Tries to sleep for at least the requested number
 * of nanoseconds.
 */
void MVM_platform_sleep(MVMnum64 second);
void MVM_platform_nanosleep(MVMuint64 nanos);