2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
2011-04-29 13:54:06 -05:00
|
|
|
native "rust" mod rustrt {
|
|
|
|
fn get_time(&mutable u32 sec, &mutable u32 usec);
|
|
|
|
}
|
|
|
|
|
|
|
|
type timeval = rec(u32 sec, u32 usec);
|
|
|
|
|
|
|
|
fn get_time() -> timeval {
|
2011-06-15 13:19:50 -05:00
|
|
|
auto sec = 0u32;
|
|
|
|
auto usec = 0u32;
|
2011-06-10 09:39:09 -05:00
|
|
|
rustrt::get_time(sec, usec);
|
|
|
|
ret rec(sec=sec, usec=usec);
|
2011-06-15 13:19:50 -05:00
|
|
|
}
|