Revision c28911dd lib/utils/__init__.py

b/lib/utils/__init__.py
525 525
  return float(seconds) + (float(microseconds) * 0.000001)
526 526

  
527 527

  
528
def EpochNano():
529
  """Return the current timestamp expressed as number of nanoseconds since the
530
  unix epoch
531

  
532
  @return: nanoseconds since the Unix epoch
533

  
534
  """
535
  return int(time.time() * 1000000000)
536

  
537

  
528 538
def FindMatch(data, name):
529 539
  """Tries to find an item in a dictionary matching a name.
530 540

  

Also available in: Unified diff