https://github.com/JuliaLang/julia
Raw File
Tip revision: 95310a080bffd5cc0d5708f3356998ad521303ff authored by Keno Fischer on 27 February 2019, 23:05:39 UTC
Allow constant-folding intrinsics that are non-pure for inference only
Tip revision: 95310a0
timefuncs.h
// This file is a part of Julia. License is MIT: https://julialang.org/license

#ifndef JL_TIMEFUNCS_H
#define JL_TIMEFUNCS_H

#ifdef __cplusplus
extern "C" {
#endif

struct jl_timeval {
    int64_t sec;    /* seconds */
    int64_t usec;   /* microseconds */
};

JL_DLLEXPORT int jl_gettimeofday(struct jl_timeval *jtv);
JL_DLLEXPORT double jl_clock_now(void);
void sleep_ms(int ms);

#ifdef __cplusplus
}
#endif

#endif
back to top