Hello,
Should you have specific questions, please post them here, but a good example model to show how you can measure and calculate switching losses and efficiency (in a Scope plot, or displaying a magnitude in digits) is the PLECS demo model called "Buck Converter with Thermal Model". Please review this model and description.
Best regards,
Kris