Right now in base jl_stat_ctime looks like this: JL_DLLEXPORT double jl_stat_ctime(char *statbuf) { uv_stat_t *s; s = (uv_stat_t*)statbuf; return (double)s->st_ctim.tv_sec + (double)s->st_ctim.tv_nsec * 1e-9; }
And it's called with ccall(:jl_stat_ctime, Float64, (Ptr{UInt8},), buf) I'd like to simplify this. I'd like a type type FineComputerTime seconds::Int nanoseconds::Int end And a way to fill it in using the stat buffer. Can anyone offer some tips? The c code keeps confusing me. I