Playing as a vampire with sun damage turned on made me realize how much time I would spend in a SexLab animation just adjusting the alignment.
This mod freezes the game time until the animation is over. You no longer have to worry about the game time while in an animation.
You can toggle it on/off from the MCM before an animation begins.
Just drop everything into the Data folder or use a mod manager to install it. Load order doesn't matter.
Open the console and type "stopquest SLFreezeGameTimeConfigQuest" without the quotes.
Save your game.
Remove the mod's files from the Data folder or use your mod manager to uninstall it.
There is no proper way to do something like this with Papyrus (at least not that I could find). This mod is simply a hack that sets the GameHour Global Variable to our frozen time every 5 seconds.
Freezing the game day is not as simple. While the actual day can be set at the Global Variable GameDay, the week day cannot be set from Papyrus. To prevent the issue of setting the game time of the next day, the time will not be frozen between 23:55 and 00:05, allowing the game to switch days and then finally freezing it once the time is equal or greater than 00:05.
Maybe eventually I'll replace this with a SKSE plugin detouring the subroutine that increases GameHour, but until then, this cannot be reliably fixed.
NOTE: The above issue does not apply for Time Scale mode.