from datetime import datetime
start, stop = '',''
while start != '1':
start = input('1 - старт:').strip()
if start != '1':
print("Действие не найдено!")
continue
start_time = datetime.now()
while stop != '0':
stop = input('0 - стоп:').strip()
if stop != '0':
print("Действие не найдено!")
continue
stop_time = datetime.now()
print(f'Общее время: {int((stop_time - start_time).total_seconds())} c')