https://github.com/JuliaLang/julia
Raw File
Tip revision: 4100322b0754b3f124e82902283b8e12f86078f1 authored by Jeff Bezanson on 14 April 2023, 16:21:29 UTC
fix #49318, structs with odd-size primitive types should count as having padding
Tip revision: 4100322
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