Micro Golf (WarioWare: Twisted!)
From the Super Mario Wiki
The game's purpose is to get a ball inside a hole. To do so, the player has to swing the golf cube left then right. If they manage to get the ball in the cup within time limit, they'll win the game.
The player starts off the game with 8 seconds.