diff options
author | David Bradford <david.bradford@mongodb.com> | 2018-04-16 12:53:43 -0400 |
---|---|---|
committer | David Bradford <david.bradford@mongodb.com> | 2018-04-16 12:53:43 -0400 |
commit | 22ab3dc578d7272a627809314839a760681ba4f4 (patch) | |
tree | ccf0ff1723563893d1a2dce53b8ef90ea286d6e2 /buildscripts/util/time.py | |
parent | c476c42f6aea9aee212d109b3fc57ace01c696fc (diff) | |
download | mongo-22ab3dc578d7272a627809314839a760681ba4f4.tar.gz |
SERVER-34296: Scripts to breakup test suites into short running tasks
Diffstat (limited to 'buildscripts/util/time.py')
-rw-r--r-- | buildscripts/util/time.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/buildscripts/util/time.py b/buildscripts/util/time.py new file mode 100644 index 00000000000..a7250992dca --- /dev/null +++ b/buildscripts/util/time.py @@ -0,0 +1,6 @@ +"""Utilities for working with time.""" + + +def ns2sec(ns): + """Convert ns to seconds.""" + return ns / (10**9) |