From b1809b2f70d8b5a5e19e0561a38b772b4eb34f52 Mon Sep 17 00:00:00 2001 From: Konrad Jamrozik Date: Thu, 4 Jul 2024 01:06:27 -0700 Subject: [PATCH] add timing for intel investing --- web/src/components/FactionsDataGrid/FactionActions.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/src/components/FactionsDataGrid/FactionActions.tsx b/web/src/components/FactionsDataGrid/FactionActions.tsx index 956ca781..06220147 100644 --- a/web/src/components/FactionsDataGrid/FactionActions.tsx +++ b/web/src/components/FactionsDataGrid/FactionActions.tsx @@ -1,5 +1,6 @@ import { Stack } from '@mui/material' import type { GameState } from '../../lib/codesync/GameState' +import { startTiming } from '../../lib/dev' import type { GameSession } from '../../lib/gameSession/GameSession' import SliderWithButton from '../utilities/SliderWithButton' import type { ManageFactionDialogProps } from './ManageFactionDialog' @@ -8,6 +9,8 @@ export function FactionActions( props: ManageFactionDialogProps & { gameSession: GameSession; gs: GameState }, ): React.JSX.Element { async function investIntel(amount: number): Promise { + console.log(`Executing investIntel(). Resetting elapsed time.`) + startTiming() await props.gameSession.investIntel(props.faction.Id, amount) }