how to check uptime on CRS326-24G-2S+

Try
system resource print

I take it you are using RouterOS, not SwitchOS. Might have been better to ask the question in a RouterOS section of the forum. Far more likely that more people will see your question.