Bugzilla – Attachment #1524: patch for ns-3-linux-3 for bug #1536
void sim_poll_event (int flag, void *context);
__u64 sim_starttime (void);
#endif /* SIM_H */
{
return g_imported.current_ns (g_kernel);
}
__u64 sim_starttime (void)
static char inited = 0;
static __u64 value = 0;
if (!inited)
value = g_imported.current_ns (0);
inited = 1;
return value;
struct SimTaskTrampolineContext
void (*callback) (void *);
ktime_t ktime_get(void)
u64 ns = sim_current_ns ();
return ns_to_ktime (ns);
return ns_to_ktime (ns + sim_starttime ());
void ktime_get_ts(struct timespec *ts)