Skip to content

Commit

Permalink
converted elapsed time to ms
Browse files Browse the repository at this point in the history
  • Loading branch information
ayyubibrahimi committed Nov 15, 2023
1 parent 635158d commit 6de4e0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/googlecloud/functions/getanswer/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def getanswer(request):
citations_data = answer.get("citations")

end = time.time()
elapsed = math.ceil(end - start)
elapsed = int((end - start) * 1000)
update_supabase(responses_data, citations_data, card_id, elapsed)
logging.info(f"Completed getanswer in {elapsed} seconds")
print(f"\n\t--------- Completed getanswer in {elapsed} seconds --------\n")
Expand Down

0 comments on commit 6de4e0c

Please sign in to comment.