Module: ParallelReportPortal::Clock

Included in:
ParallelReportPortal
Defined in:
lib/parallel_report_portal/clock.rb

Overview

This module is responsilbe for the timekeeping for the tests.

Instance Method Summary collapse

Instance Method Details

#clockInteger

Get the current time.

This is based on the Unix time stamp and is in milliseconds.

Returns:

  • (Integer)

    the number of milliseconds since the Unix epoc.



9
10
11
# File 'lib/parallel_report_portal/clock.rb', line 9

def clock
  (Time.now.to_f * 1000).to_i
end