Clock period using SVA

In reply to SriGanesh D:
In your code,

(1,temp = $realtime) |=> (1,clk_time = ($realtime - temp))  ##0 (1,print_time(clk_time));

can you explain what it’s doing, specifically “(1,temp = $realtime)”?

Thanks