Get woocommerce carts total amount

To Get woocommerce carts total amount use the following code
WC()->cart->get_cart_total()