parameters: ()
return_statement: return now_nanos.sim_time
docstring: Returns the current simulation time in nanoseconds
docstring_summary: Returns the current simulation time in nanoseconds
docstring_tokens: Returns the current simulation time in nanoseconds
function: def now_nanos():
      """Returns the current simulation time in nanoseconds"""
      if now_nanos.sim_time == 0:
          now_nanos.sim_time += int(time.time() * 1000000000)
      else:
          now_nanos.sim_time += random.randint(MIN_TIME_DELTA_NANOS, MAX_TIME_DELTA_NANOS)
  
      return now_nanos.sim_time
function_tokens: def now_nanos ( ) : if now_nanos . sim_time == 0 : now_nanos . sim_time += int ( time . time ( ) * 1000000000 ) else : now_nanos . sim_time += random . randint ( MIN_TIME_DELTA_NANOS , MAX_TIME_DELTA_NANOS ) return now_nanos . sim_time