import multiprocessing
import time

start = time.perf_counter()

def do_something():
    print('Sleeping 1 second...')
    time.sleep(1)
    print('Done Sleeping...')

if __name__ == "__main__":
    p1 = multiprocessing.Process(target=do_something)
    p2 = multiprocessing.Process(target=do_something)

    p1.start()
    p2.start()

    #Ensures threads complete before moving on to the finish time
    p1.join()
    p2.join()

    finish = time.perf_counter()

    print(f'Finished in {finish-start} second(s)')