Skip to content

Commit

Permalink
add timing for intel investing
Browse files Browse the repository at this point in the history
  • Loading branch information
Konrad Jamrozik committed Jul 4, 2024
1 parent 1396b8e commit b1809b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions web/src/components/FactionsDataGrid/FactionActions.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -8,6 +9,8 @@ export function FactionActions(
props: ManageFactionDialogProps & { gameSession: GameSession; gs: GameState },
): React.JSX.Element {
async function investIntel(amount: number): Promise<void> {
console.log(`Executing investIntel(). Resetting elapsed time.`)
startTiming()
await props.gameSession.investIntel(props.faction.Id, amount)
}

Expand Down

0 comments on commit b1809b2

Please sign in to comment.